Fix off-by-1

This commit is contained in:
Roberto Alsina 2024-08-16 13:36:11 -03:00
parent 7538fc76aa
commit 9ebb9f2765

View File

@ -80,8 +80,8 @@ module Tartrazine
@state_stack = ["root"] @state_stack = ["root"]
else else
@dq << {type: "Error", value: String.new(@text[@pos..@pos])} @dq << {type: "Error", value: String.new(@text[@pos..@pos])}
@pos += 1
end end
@pos += 1
break break
end end
end end