mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Rename match.ts to matches.ts
This commit is contained in:
parent
1e166b5ecc
commit
672b920f31
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user