Patch by Kouhei Sutou, enables support of \XX octal filter syntax
This commit is contained in:
parent
3f7a4a254d
commit
d0c877bcd5
|
@ -464,7 +464,8 @@ 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\*\.\+\-@=#\$%&! ]+/ ) (ff suggested by Kouhei Sutou
|
||||||
|
if value = scanner.scan( /(?:[\w\*\.\+\-@=#\$%&! ]|\\[a-fA-F\d]{2,2})+/ )
|
||||||
case op
|
case op
|
||||||
when "="
|
when "="
|
||||||
Filter.eq( token, value )
|
Filter.eq( token, value )
|
||||||
|
|
Loading…
Reference in a new issue