fixed regex reading

This commit is contained in:
qugalet 2023-07-13 15:07:32 +03:00
parent 34c552703a
commit f8e480bfee

View file

@ -20,7 +20,7 @@ function parseAsyncRegexFile(file: Buffer): RegExp[] {
const data = file.toString();
return data
.split('\n')
.filter(regex => !regex.trim().startsWith('#'))
.filter(regex => !regex.startsWith('#') && regex.trim() !== '')
.map(regex => new RegExp(regex));
}