mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-11 13:15:13 +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 matchesRegex = new RegExp(/export\s+const\s+matches\s+=\s+(?<matches>\[.*?])/gms)
|
||||||
const matchesClassesRegex = new RegExp(/(?<!\/\/\s*)new\s+(?<class>\w+)\(\)/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
|
const jsMatches = matchesRegex.exec(matchTs).groups.matches
|
||||||
let m
|
let m
|
||||||
while ((m = matchesClassesRegex.exec(jsMatches))) {
|
while ((m = matchesClassesRegex.exec(jsMatches))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user