This repository was archived by the owner on Sep 8, 2022. It is now read-only.
Commit a52d6ec
committed
Properly quote regex replacement string in path canonicalization
Backslashes and dollars in regex replacement strings are interpreted
as back references. The canonicalization chokes on paths like:
/base/path/something/Foo$.js
(because of the `$`). Quoting the replacement string mitigates this.1 parent bcdbb90 commit a52d6ec
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
| |||
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
327 | | - | |
| 329 | + | |
| 330 | + | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
| |||
0 commit comments