| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 02a50c3 commit 1f82929
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -95,7 +95,10 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { | |||
| 95 | 95 | lastSegmentLength = 2; | |
| 96 | 96 | } | |
| 97 | 97 | } else { | |
| 98 | - res += (res.length > 0 ? separator : '') + path.slice(lastSlash + 1, i); | ||
| 98 | + if (res.length > 0) | ||
| 99 | + res += `${separator}${path.slice(lastSlash + 1, i)}`; | ||
| 100 | + else | ||
| 101 | + res = path.slice(lastSlash + 1, i); | ||
| 99 | 102 | lastSegmentLength = i - lastSlash - 1; | |
| 100 | 103 | } | |
| 101 | 104 | lastSlash = i; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments