v1.0.4
Match url from a url pattern list fastly.
Repository
Current version released
2 years ago
Dependencies
std
Versions
Url matcher
Match url from url pattern list fastly.
url patterns:
/objects/*/users/* (`*` stands for any characters between two `/` )
Usage
import {Pattern,UrlWildcharMatcher} from "https://deno.land/x/urlmatcher/UrlWildcharMatcher.js"
let patternList = [new Pattern('/objects/*/users'), new Pattern('/sites/city')]
let m = new UrlWildcharMatcher(patternList);
let pattern = m.find('/objects/country/users');