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( /\=|\<\=|\<|\>\=|\>|\!\=/ )
|
||||
scanner.scan(/\s*/)
|
||||
#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
|
||||
when "="
|
||||
Filter.eq( token, value )
|
||||
|
|
Loading…
Reference in a new issue