Commit 2ed5059
committed
fix(scripts): complete regex escaping in rotateChangelog (CodeQL js/incomplete-sanitization)
The version reaching this path is semver-validated in main(), but
rotateChangelog is an exported function — escape every regex
metacharacter, not just dots, so a direct caller cannot smuggle a
pattern into the duplicate-section check.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fc2MvWJbQ1cyNQ76ymv4hs1 parent 1595804 commit 2ed5059
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | | - | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| |||
0 commit comments