Skip to content

Darklua can generate malformed escape sequences #291

@TokenManiac

Description

@TokenManiac

I encountered this issue while trying to bundle a file with thousands of escape sequences in it.

Reproduction Steps:

  1. Create a Lua file with the following code: print("\x1f8")
  2. Run DarkLua on the generated file using one of the following commands:
    • darklua --format "dense"
    • darklua --format "readable"
    • darklua minify

Observed Output:
The produced escape sequence is malformed

Image

Expected Behavior:
Expected darklua to provide a valid escape sequence :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions