• Mark Florian's avatar
    Fix isRootRelative for protocol-relative URLs · 62889dd7
    Mark Florian authored
    Protocol-relative URLs, e.g., `//foo.test`, are not root-relative. This
    fixes `isRootRelative` to return `false` when given a protocol-relative
    URL using a negative lookahead assertion for a second '/' character.
    62889dd7
url_utility_spec.js 36.5 KB