supported comma in filter strings, suggested by Kouhei.

This commit is contained in:
blackhedd 2007-08-26 09:28:37 +00:00
parent c6307d2ce4
commit 6e53144090
2 changed files with 2 additions and 1 deletions

View file

@ -471,7 +471,7 @@ class FilterParser #:nodoc:
scanner.scan(/\s*/)
#if value = scanner.scan( /[\w\*\.]+/ ) (ORG)
#if value = scanner.scan( /[\w\*\.\+\-@=#\$%&! ]+/ ) (ff suggested by Kouhei Sutou
if value = scanner.scan( /(?:[\w\*\.\+\-@=#\$%&! ]|\\[a-fA-F\d]{2,2})+/ )
if value = scanner.scan( /(?:[\w\*\.\+\-@=,#\$%&! ]|\\[a-fA-F\d]{2,2})+/ )
case op
when "="
Filter.eq( token, value )