mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Exclude comment matches when matching domain matches
This commit is contained in:
parent
feaf843584
commit
f48adc3db3
@ -23,7 +23,7 @@ function getDomains() {
|
||||
let domains = []
|
||||
|
||||
const matchesRegex = new RegExp(/export\s+const\s+matches\s+=\s+(?<matches>\[.*?])/gms)
|
||||
const matchesClassesRegex = new RegExp(/new\s+(?<class>\w+)\(\)/gms)
|
||||
const matchesClassesRegex = new RegExp(/(?<!\/\/\s*)new\s+(?<class>\w+)\(\)/gms)
|
||||
|
||||
const matchTs = fs.readFileSync('src/match/match.ts')
|
||||
const jsMatches = matchesRegex.exec(matchTs).groups.matches
|
||||
|
Loading…
x
Reference in New Issue
Block a user