MCPcopy Index your code
hub / github.com/socketio/socket.io / pathNames

Function pathNames

client-dist/socket.io.js:1816–1826  ·  view source on GitHub ↗
(obj, path)

Source from the content-addressed store, hash-verified

1814 return uri;
1815 }
1816 function pathNames(obj, path) {
1817 var regx = /\/{2,9}/g,
1818 names = path.replace(regx, "/").split("/");
1819 if (path.slice(0, 1) == '/' || path.length === 0) {
1820 names.splice(0, 1);
1821 }
1822 if (path.slice(-1) == '/') {
1823 names.splice(names.length - 1, 1);
1824 }
1825 return names;
1826 }
1827 function queryKey(uri, query) {
1828 var data = {};
1829 query.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function ($0, $1, $2) {

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected