UNPKG

dav

Version:

WebDAV, CalDAV, and CardDAV client for nodejs and the browser

16 lines (13 loc) 421 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = fuzzyUrlEquals; function fuzzyUrlEquals(one, 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; } module.exports = exports['default'];