MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / _decodePath

Method _decodePath

lib/resource-mapper.mjs:167–176  ·  view source on GitHub ↗
(pathname)

Source from the content-addressed store, hash-verified

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) {

Callers 1

mapUrlToFileMethod · 0.95

Calls 1

_exceptSlashMethod · 0.95

Tested by

no test coverage detected