(path)
| 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 | } |
nothing calls this directly
no test coverage detected