darklua icon indicating copy to clipboard operation
darklua copied to clipboard

Escape string conversion is incorrect

Open capthehacker99 opened this issue 11 months ago • 2 comments

Given the following script as test.lua:

print(("\128"):byte(1, 1) == 128)

Run darklua minify test.lua test.min.lua to get test.min.lua:

print(('\u{80}'):byte(1,1)==128)

Run both scripts using luau and observe that the first script will print true while the second one will print false

capthehacker99 avatar Jan 05 '25 02:01 capthehacker99

having the same issue with luauception

jacesc avatar Jan 09 '25 08:01 jacesc

Seems to have been introduced in 0.14.1, as in 0.14.0 this doesn't seem to be an issue. (Possibly #232 ?)

ewd3v avatar Jan 27 '25 11:01 ewd3v

it only happens when dense or readable is set as generator on the config when a file is processed on darklua process

jLn0n avatar Jun 08 '25 14:06 jLn0n