SkillPedia Skills Encyclopedia
中文 EN
Today's updates 2026-11-18 UTC

No new commits yet today

Open the update feed

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).

skoshx 84ad0c8 millionco/react-doctor

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>