lib/radius/parser/scanner.rl in radius-ts-1.1.0 vs lib/radius/parser/scanner.rl in radius-ts-1.3.0
- old
+ new
@@ -3,10 +3,11 @@
action _prefix { mark_pfx = p }
action prefix {
if data[mark_pfx..p-1] != @prefix
- @nodes.last << data[mark_pfx-1..p]
+ closing = data[mark_pfx-1,1] == '/'
+ @nodes.last << data[mark_pfx-(closing ? 2 : 1)..p]
fbreak;
end
}
action _starttag { mark_stg = p }
action starttag { @starttag = data[mark_stg..p-1] }