Fix linter error for strings
Use single quotes.
This commit is contained in:
parent
3382c56c06
commit
14004429fc
|
|
@ -222,7 +222,7 @@ export function urlMatches(urlString: string, match: types.URLMatch | undefined)
|
|||
return true;
|
||||
if (helper.isString(match))
|
||||
match = helper.globToRegex(match);
|
||||
if (match instanceof RegExp || match.constructor.name === "RegExp")
|
||||
if (match instanceof RegExp || match.constructor.name === 'RegExp')
|
||||
return match.test(urlString);
|
||||
if (typeof match === 'string' && match === urlString)
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue