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