On 8 June 2017 at 11:47,  <[email protected]> wrote:
> This is an automated email from the ASF dual-hosted git repository.
>
> johndament pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/whimsy.git
>
>
> The following commit(s) were added to refs/heads/master by this push:
>      new 0a0c61f  Use lowercase.
> 0a0c61f is described below
>
> commit 0a0c61f9543d359969b1d4913aea4540d2705e8d
> Author: John D. Ament <[email protected]>
> AuthorDate: Thu Jun 8 06:47:45 2017 -0400
>
>     Use lowercase.
> ---
>  lib/whimsy/asf/podlings.rb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/whimsy/asf/podlings.rb b/lib/whimsy/asf/podlings.rb
> index 1a3aae2..3fe2683 100644
> --- a/lib/whimsy/asf/podlings.rb
> +++ b/lib/whimsy/asf/podlings.rb
> @@ -209,7 +209,7 @@ module ASF
>      end
>
>      def podlingStatus
> -      @resource.untaint if @resource =~ /\A\w+\Z/
> +      @resource.untaint if @resource =~ /\a\w+\z/

Does \a mean anything?

Why not use

    @resource.untaint if @resource =~ /^\w+$/


>        incubator_content = ASF::SVN['asf/incubator/public/trunk/content']
>        resource_yml = "#{incubator_content}/podlings/#{@resource}.yml"
>        if File.exist?(resource_yml)
>
> --
> To stop receiving notification emails like this one, please contact
> ['"[email protected]" <[email protected]>'].

Reply via email to