MCPcopy
hub / github.com/docsifyjs/docsify / parse

Method parse

src/core/router/history/abstract.js:10–24  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

8 }
9
10 parse(path) {
11 let query = '';
12
13 const queryIndex = path.indexOf('?');
14 if (queryIndex >= 0) {
15 query = path.slice(queryIndex + 1);
16 path = path.slice(0, queryIndex);
17 }
18
19 return {
20 path,
21 file: this.getFile(path),
22 query: parseQuery(query),
23 };
24 }
25}

Callers

nothing calls this directly

Calls 2

parseQueryFunction · 0.90
getFileMethod · 0.80

Tested by

no test coverage detected