(href)
| 621 | // URL |
| 622 | |
| 623 | getParentURL(href) { |
| 624 | const url = new URL(href); |
| 625 | let path = url.pathname; |
| 626 | if (path) { |
| 627 | let slash = path.lastIndexOf('/'); |
| 628 | url.pathname = path.slice(0, slash); |
| 629 | return url.toString(); |
| 630 | } |
| 631 | } |
| 632 | isPathInvalid(path, index) { |
| 633 | let split = path.split('/'); |
| 634 | if (index > 0) |
no test coverage detected