mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
The parser code just added the first character after an octal/hex sequence as raw text, resulting in erroneous data whenever another escape sequence follows directly after.
8 lines
146 B
ChaiScript
8 lines
146 B
ChaiScript
|
|
assert_equal("\x39", "9")
|
|
assert_equal("\x039", "9")
|
|
assert_equal("\x39g", "9g")
|
|
assert_equal("b\x39g", "b9g")
|
|
assert_equal("\x39\x38g", "98g")
|
|
|