mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 13:39:44 +02:00
fix(core): Build the user regex engine lazily on reset
resetUserRegexEngine rebuilt the default engine eagerly, while every other reset path in this module builds lazily on next use. Shutdown paid for a second, immediately-unused engine instance every time. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
2ba593d815
commit
a1ff61a8ba
|
|
@ -212,7 +212,7 @@ export function setUserRegexEngine(regexEngine: RegexEngine): void {
|
|||
}
|
||||
|
||||
export function resetUserRegexEngine(): void {
|
||||
userEngine = createDefaultEngine();
|
||||
userEngine = undefined;
|
||||
}
|
||||
|
||||
function getUserEngine(): RegexEngine {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user