(a: string, b: string)
| 88 | : config.base |
| 89 | } |
| 90 | function joinUrlSegments(a: string, b: string): string { |
| 91 | if (!a || !b) { |
| 92 | return a || b || '' |
| 93 | } |
| 94 | if (a.endsWith('/')) { |
| 95 | a = a.substring(0, a.length - 1) |
| 96 | } |
| 97 | if (b[0] !== '/') { |
| 98 | b = '/' + b |
| 99 | } |
| 100 | return a + b |
| 101 | } |
| 102 | |
| 103 | function toAssetPathFromHtml( |
| 104 | filename: string, |
no outgoing calls
no test coverage detected