Patch by Kouhei Sutou, enables support of \XX octal filter syntax

This commit is contained in:
blackhedd 2007-06-20 12:31:37 +00:00
parent 3f7a4a254d
commit d0c877bcd5

View file

@ -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 )