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

Method _exceptSlash

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

Source from the content-addressed store, hash-verified

153 // encode/decode path except slash (/), %encodedSlash (%2F|%2f), or ntimes%encodedSlash (%2525...2F|%2525...2f)
154 // see https://github.com/solid/node-solid-server/issues/1666
155 _exceptSlash () { return /(\/|%(?:25)*(?:2f))/gi }
156
157 _encodePath (pathname) {
158 return pathname.split(this._exceptSlash())

Callers 2

_encodePathMethod · 0.95
_decodePathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected