fixed regex reading
This commit is contained in:
parent
34c552703a
commit
f8e480bfee
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ function parseAsyncRegexFile(file: Buffer): RegExp[] {
|
||||||
const data = file.toString();
|
const data = file.toString();
|
||||||
return data
|
return data
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.filter(regex => !regex.trim().startsWith('#'))
|
.filter(regex => !regex.startsWith('#') && regex.trim() !== '')
|
||||||
.map(regex => new RegExp(regex));
|
.map(regex => new RegExp(regex));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue