From 14004429fcfdbc838795345b52c269f09bf30bb6 Mon Sep 17 00:00:00 2001 From: aesyondu <57334943+aesyondu@users.noreply.github.com> Date: Mon, 17 Feb 2020 21:07:39 +0800 Subject: [PATCH] Fix linter error for strings Use single quotes. --- src/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.ts b/src/platform.ts index 35fc5b63cf..217587c960 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -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;