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
|
# Added a greatly-augmented filter contributed by Andre Nathan
|
||||||
# for detecting special characters in values. (15Aug06)
|
# for detecting special characters in values. (15Aug06)
|
||||||
|
# Added blanks to the attribute filter (26Oct06)
|
||||||
def parse_filter_branch scanner
|
def parse_filter_branch scanner
|
||||||
scanner.scan(/\s*/)
|
scanner.scan(/\s*/)
|
||||||
if token = scanner.scan( /[\w\-_]+/ )
|
if token = scanner.scan( /[\w\-_]+/ )
|
||||||
|
@ -359,7 +360,7 @@ class FilterParser #:nodoc:
|
||||||
if op = scanner.scan( /\=|\<\=|\<|\>\=|\>|\!\=/ )
|
if op = scanner.scan( /\=|\<\=|\<|\>\=|\>|\!\=/ )
|
||||||
scanner.scan(/\s*/)
|
scanner.scan(/\s*/)
|
||||||
#if value = scanner.scan( /[\w\*\.]+/ ) (ORG)
|
#if value = scanner.scan( /[\w\*\.]+/ ) (ORG)
|
||||||
if value = scanner.scan( /[\w\*\.\+\-@=#\$%&!]+/ )
|
if value = scanner.scan( /[\w\*\.\+\-@=#\$%&! ]+/ )
|
||||||
case op
|
case op
|
||||||
when "="
|
when "="
|
||||||
Filter.eq( token, value )
|
Filter.eq( token, value )
|
||||||
|
|
Loading…
Add table
Reference in a new issue