lua-toml icon indicating copy to clipboard operation
lua-toml copied to clipboard

Infinite loop

Open Chipsterjulien opened this issue 4 years ago • 1 comments

If last line in a file is '#', toml.parse enter in infinite loop and freeze

local toml = require( 'toml' )

local tomlStr = '[default]\ntest="test"\nnewTest="new test"\n#'
print(toml.parse(tomlStr))

Chipsterjulien avatar Aug 12 '20 09:08 Chipsterjulien

I also ran into this bug

slondr avatar Feb 03 '21 02:02 slondr