From f48adc3db3e8a0e205b1a3c441063f462adb6b78 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 16 Jun 2022 16:09:35 +0200 Subject: [PATCH] Exclude comment matches when matching domain matches --- tasks/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/build.ts b/tasks/build.ts index e2e230b..c8ec261 100644 --- a/tasks/build.ts +++ b/tasks/build.ts @@ -23,7 +23,7 @@ function getDomains() { let domains = [] const matchesRegex = new RegExp(/export\s+const\s+matches\s+=\s+(?\[.*?])/gms) - const matchesClassesRegex = new RegExp(/new\s+(?\w+)\(\)/gms) + const matchesClassesRegex = new RegExp(/(?\w+)\(\)/gms) const matchTs = fs.readFileSync('src/match/match.ts') const jsMatches = matchesRegex.exec(matchTs).groups.matches