(pathname)
| 165 | } |
| 166 | |
| 167 | _decodePath (pathname) { |
| 168 | return pathname.split(this._exceptSlash()) |
| 169 | .map((el, i) => i % 2 === 0 ? decodeURIComponent(el) : el) |
| 170 | .join('') |
| 171 | /* const pathArray = pathname.split(this._exceptSlash()) |
| 172 | pathArray.forEach((el, i) => { |
| 173 | if (i % 2 === 0) pathArray[i] = decodeURIComponent(el) |
| 174 | }) |
| 175 | return pathArray.join('') */ |
| 176 | } |
| 177 | |
| 178 | // Parses a URL into hostname and pathname |
| 179 | _parseUrl (url) { |
no test coverage detected