diff --git a/lib/util/match-params.js b/lib/util/match-params.js index 7d255c74..e3972f3b 100644 --- a/lib/util/match-params.js +++ b/lib/util/match-params.js @@ -4,8 +4,7 @@ const paramPattern = /\{[^{}]+\}/g function hasParams (url) { if (!url) return false - const matches = url.match(paramPattern) - return matches !== null && matches.length > 0 + return paramPattern.test(url) } function matchParams (url) {