Commit 2d652dd
committed
fix(generator): escape special chars for path replacements with regex
If a projects path contains special characters, they will be intrepeted as
regular expresion instructions, which results in wrong output paths in the
end. To avoid this, special characters that can be used in regular
expressions should be escaped.
Fixes #321 parent 7de726f commit 2d652dd
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
0 commit comments