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

bug: linter: no hex escape, panic when linting js #1539

Closed
camc314 opened this issue Nov 24, 2023 · 0 comments · Fixed by #1540
Closed

bug: linter: no hex escape, panic when linting js #1539

camc314 opened this issue Nov 24, 2023 · 0 comments · Fixed by #1540
Assignees
Labels
A-linter Area - Linter C-bug Category - Bug P-high Priority - High

Comments

@camc314
Copy link
Collaborator

camc314 commented Nov 24, 2023

pattern: wrapId(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),

https://github.com/PrismJS/prism/blob/59e5a3471377057de1f401ba38337aca27b80e03/components/prism-kumir.js#L73

thread '<unnamed>' panicked at crates/oxc_linter/src/rules/unicorn/no_hex_escape.rs:63:34:
byte index 26 is not a char boundary; it is inside 'р' (bytes 25..27) of `(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|над`[...]
@camc314 camc314 added C-bug Category - Bug P-high Priority - High A-linter Area - Linter labels Nov 24, 2023
@camc314 camc314 changed the title bug: linter: Panic when lint bug: linter: no hex escape, panic when linting js Nov 24, 2023
@camc314 camc314 self-assigned this Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-bug Category - Bug P-high Priority - High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant