Commit Graph
4 Commits
Author SHA1 Message Date
Sebastian DanielssonandClaude Opus 5.5 a891be1a13 fix(scripts): make extract-tools-desc quote matching linear
`(?:[^']+|(?<=\\)')+` nests quantifiers and backtracks exponentially on long
unterminated values. Use one `'(?:[^'\\]|\\.)*'` pattern for both extracting
and replacing. Extraction used `(.*?)`, which stopped at the first escaped
quote (`'It\'s'` became `It\`); it now reads the whole value and decodes
JS string escapes (\n, \xHH, \uHHHH, \u{...}, \') before writing the
locale file.

Fixes CodeQL js/redos alerts in scripts/extract-tools-desc.mjs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:11:50 +02:00
ShareVB 19a61f16c8 feat(Scripts): extract externAccessDescription 2026-02-14 09:32:13 +01:00
ShareVB a4576e040c feat: translation scripts enhancements
extract-tools-desc: use t() to make recognizable
extract-tools-string: search for attributes only in .vue + handle single directory/file from command line + useI18n only in .vue
2025-07-20 21:01:18 +02:00
ShareVB cca32baf0f feat: add script to extract tools name and description 2025-07-06 19:39:44 +02:00