SkillPedia Skills Encyclopedia
中文 EN
今日更新 2026-11-18 UTC

今天还没有新提交

查看更新动态

技能 2026-10-15 06:47 UTC

react-doctor

由提交人 skoshx 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:fix: recognize replaceAll in unsafe-json-in-html rule (#2011)。

skoshx 84ad0c8 millionco/react-doctor

Commit提交信息原文

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>