Fix linter error for strings

Use single quotes.
This commit is contained in:
aesyondu 2020-02-17 21:07:39 +08:00 committed by GitHub
parent 3382c56c06
commit 14004429fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;