sebb wrote on 6/8/17 7:08 AM:
> On 8 June 2017 at 11:47,  <[email protected]> wrote:
>> This is an automated email from the ASF dual-hosted git repository.
...snip...

>>      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+$/

Actually, most ruby sites I've read learning ruby regex say:

"Use \A and \z to match the start and end of the string"

https://stackoverflow.com/questions/577653/difference-between-a-z-and-in-ruby-regular-expressions

I don't know what \a means for ruby's regex, but I find Rubular helpful:

  http://rubular.com/


-- 

- Shane
  https://www.apache.org/foundation/marks/resources

Reply via email to