Skills 2026-10-15 06:47 UTC
react-doctor
committed by skoshx. Category: Bug Fixes & Stability Improvements. Commit message: fix: recognize replaceAll in unsafe-json-in-html rule (#2011).
CommitRaw commit message
fix: recognize replaceAll in unsafe-json-in-html rule (#2011)
Fixes #2010
The unsafe-json-in-html rule now recognizes .replaceAll("<", "\u003c")
and variants as safe escape patterns, equivalent to the already-recognized
.replace(/</g, "\u003c") form.
Added comprehensive regression tests covering:
- Safe patterns: replaceAll with \u003c, \u003C, and < replacements
- Unsafe patterns: wrong search character and non-escaping replacements
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Skosh <skoshx@users.noreply.github.com>