Rename match.ts to matches.ts

This commit is contained in:
bytedream 2022-07-12 22:51:37 +02:00
parent 1e166b5ecc
commit 672b920f31
2 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function getDomains() {
const matchesRegex = new RegExp(/export\s+const\s+matches\s+=\s+(?<matches>\[.*?])/gms)
const matchesClassesRegex = new RegExp(/(?<!\/\/\s*)new\s+(?<class>\w+)\(\)/gms)
const matchTs = fs.readFileSync('src/match/match.ts')
const matchTs = fs.readFileSync('src/match/matches.ts')
const jsMatches = matchesRegex.exec(matchTs).groups.matches
let m
while ((m = matchesClassesRegex.exec(jsMatches))) {