diff options
Diffstat (limited to 'js/dav/lib/fuzzy_url_equals.js')
-rw-r--r-- | js/dav/lib/fuzzy_url_equals.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/js/dav/lib/fuzzy_url_equals.js b/js/dav/lib/fuzzy_url_equals.js deleted file mode 100644 index e5229c62..00000000 --- a/js/dav/lib/fuzzy_url_equals.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; -export default function fuzzyUrlEquals(one, other) { - other = encodeURI(other); - return fuzzyIncludes(one, other) || fuzzyIncludes(other, one); -}; - -function fuzzyIncludes(one, other) { - return one.indexOf(other) !== -1 || - (other.charAt(other.length -1) === '/' && - one.indexOf(other.slice(0, -1)) !== -1); -} |