Raise regex timeout from 100ms to 250ms

This commit is contained in:
Dragory 2020-08-05 01:19:24 +03:00
parent ad52ace055
commit ffc25791ca
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -21,7 +21,7 @@ export function allowTimeout(err: RegExpTimeoutError | Error) {
throw err;
}
const REGEX_TIMEOUT = 100; // ms
const REGEX_TIMEOUT = 250; // ms
const REGEX_FAIL_TO_COOLDOWN_COUNT = 3; // If a regex fails this many times, it goes on cooldown...
const REGEX_FAIL_COOLDOWN = 5 * MINUTES; // ...for this long