Skip to content

bug(linter) bug in fixer for no-hex-escape #5127

@camc314

Description

@camc314
bunx oxlint@latest -D all -D no-hex-escape --fix <file name>

input:

const unicodeMatch = "".toString().match(/[^\x00-\xFF]+/g);

actual fix:

const unicodeMatch = "".toString().match(/[^\u0000-\u00FF]+//);

expected fix: (i think)

const unicodeMatch = "".toString().match(/[^\u0000-\u00FF]+/g);

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory - Buggood first issueExperience Level - Good for newcomers

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions