Commit 13fa582
committed
fix: chain pattern replacements and support HTML script tags in removal
- Fix removePatternFromContent to chain all pattern replacements instead of returning after first match
- Add REACT_SCAN_HTML_SCRIPT_TAG pattern to match standard HTML <script></script> tags
- Include HTML script tag pattern in Vite and Webpack removal functions
- Run formatter on modified files1 parent 377d944 commit 13fa582
File tree
4 files changed
+30
-30
lines changed- packages
- cli/src/utils
- mcp/src
- react-grab
- e2e
- src/utils
4 files changed
+30
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1612 | 1612 | | |
1613 | 1613 | | |
1614 | 1614 | | |
| 1615 | + | |
1615 | 1616 | | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1626 | 1627 | | |
1627 | 1628 | | |
1628 | 1629 | | |
| |||
1635 | 1636 | | |
1636 | 1637 | | |
1637 | 1638 | | |
| 1639 | + | |
| 1640 | + | |
1638 | 1641 | | |
1639 | 1642 | | |
1640 | 1643 | | |
| |||
1661 | 1664 | | |
1662 | 1665 | | |
1663 | 1666 | | |
1664 | | - | |
| 1667 | + | |
1665 | 1668 | | |
1666 | 1669 | | |
1667 | 1670 | | |
| |||
1673 | 1676 | | |
1674 | 1677 | | |
1675 | 1678 | | |
1676 | | - | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1677 | 1684 | | |
1678 | 1685 | | |
1679 | 1686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
885 | | - | |
886 | | - | |
| 884 | + | |
887 | 885 | | |
888 | 886 | | |
889 | 887 | | |
| |||
894 | 892 | | |
895 | 893 | | |
896 | 894 | | |
897 | | - | |
898 | | - | |
899 | | - | |
| 895 | + | |
900 | 896 | | |
901 | 897 | | |
902 | 898 | | |
| |||
0 commit comments