MCPcopy
hub / github.com/socketio/socket.io / pathNames

Function pathNames

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

Source from the content-addressed store, hash-verified

1631 return uri;
1632 }
1633 function pathNames(obj, path) {
1634 var regx = /\/{2,9}/g,
1635 names = path.replace(regx, "/").split("/");
1636 if (path.slice(0, 1) == '/' || path.length === 0) {
1637 names.splice(0, 1);
1638 }
1639 if (path.slice(-1) == '/') {
1640 names.splice(names.length - 1, 1);
1641 }
1642 return names;
1643 }
1644 function queryKey(uri, query) {
1645 var data = {};
1646 query.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function ($0, $1, $2) {

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected