Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape string conversion is incorrect #250

Open
capthehacker99 opened this issue Jan 5, 2025 · 2 comments
Open

Escape string conversion is incorrect #250

capthehacker99 opened this issue Jan 5, 2025 · 2 comments

Comments

@capthehacker99
Copy link

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

@jacesc
Copy link

jacesc commented Jan 9, 2025

having the same issue with luauception

@ewd3v
Copy link

ewd3v commented Jan 27, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants