added blanks to the attribute filter in Filter#construct
This commit is contained in:
parent
0bf59f7897
commit
1748afac24
1 changed files with 2 additions and 1 deletions
|
@ -352,6 +352,7 @@ class FilterParser #:nodoc:
|
|||
|
||||
# Added a greatly-augmented filter contributed by Andre Nathan
|
||||
# for detecting special characters in values. (15Aug06)
|
||||
# Added blanks to the attribute filter (26Oct06)
|
||||
def parse_filter_branch scanner
|
||||
scanner.scan(/\s*/)
|
||||
if token = scanner.scan( /[\w\-_]+/ )
|
||||
|
@ -359,7 +360,7 @@ class FilterParser #:nodoc:
|
|||
if op = scanner.scan( /\=|\<\=|\<|\>\=|\>|\!\=/ )
|
||||
scanner.scan(/\s*/)
|
||||
#if value = scanner.scan( /[\w\*\.]+/ ) (ORG)
|
||||
if value = scanner.scan( /[\w\*\.\+\-@=#\$%&!]+/ )
|
||||
if value = scanner.scan( /[\w\*\.\+\-@=#\$%&! ]+/ )
|
||||
case op
|
||||
when "="
|
||||
Filter.eq( token, value )
|
||||
|
|
Loading…
Reference in a new issue