Closed hacknlove closed 5 years ago
// https://repl.it/repls/DimpledExpensiveModule
const UrlPattern = require('url-pattern') const pattern = new UrlPattern('/foo/:bar')
console.log(pattern.match('/foo/something')) // Match
console.log(pattern.match('/foo/some.thing')) // Does not match
hey @hacknlove,
i hope reading my answer to this similar issue will help you https://github.com/snd/url-pattern/issues/26
this is working as expected. please read my answer in #26. closing
// https://repl.it/repls/DimpledExpensiveModule
const UrlPattern = require('url-pattern') const pattern = new UrlPattern('/foo/:bar')
console.log(pattern.match('/foo/something')) // Match
console.log(pattern.match('/foo/some.thing')) // Does not match