Commit 601304c
committed
Fix path replacement
Previously we were searching for all instances of "/code" to an empty
string for reporting back to Code Climate. This was resulting in any
file that had a nested directory called "code" to be replaced which
created issues with display.
Change the replacement of "/code" to a regular expression that anchors
the pattern so that we only replace the first instance.1 parent 7790bb7 commit 601304c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments