(url, folderUrl)
| 1017 | } |
| 1018 | |
| 1019 | function isInsideOpenFolder(url, folderUrl) { |
| 1020 | const urlKey = normalizeUrlPathKey(url); |
| 1021 | const folderKey = normalizeUrlPathKey(folderUrl); |
| 1022 | if (!urlKey || !folderKey) return false; |
| 1023 | |
| 1024 | return urlKey === folderKey || urlKey.startsWith(`${folderKey}/`); |
| 1025 | } |
| 1026 | |
| 1027 | function appendUrlPathSuffix(url, suffix) { |
| 1028 | if (!suffix) return url; |
no test coverage detected