helpers.js 193 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 exports.pathMatch = pathMatch; function pathMatch(url, path) { if (url == path) return true; var q = url.indexOf('?'); if (q == -1) return false; return url.substring(0, q) == path; }