-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I'm looking for a way to compare a given URI against a template to check whether the URI matches that template. Say, for example:
const uri = 'https://example.com/books/42';
const template = 'https://example.com/books/{id}';From glancing over the source code, it looks like I could somehow use the parse function for that, but it certainly isn't obvious to me. Maybe a match(template: string, uri: string): boolean function would be a good addition to the library?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels