Commit 17efb65
Remove the root path from the absolute path only once
In cases where root path is also a substring of a relative path, it was being erroneously removed twice (or more).
e.g.
for absolute path /app/config/application.rb
when root is /app
it would display relative path as config.lication.rb instead of config/application.rb1 parent c90d0ab commit 17efb65
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
0 commit comments