We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ReferenceError: pattern is not defined
1 parent e3f4bdd commit 107c9beCopy full SHA for 107c9be
src/precompile.js
@@ -34,7 +34,7 @@ export function precompile(source, filename = "<input>") {
34
} catch {
35
// swallow regex parse errors here to instead throw them at the engine level
36
// this then also avoids regex parser bugs being thrown unnecessarily
37
- transpiledPattern = pattern;
+ transpiledPattern = node.regex.pattern;
38
}
39
const transpiledRegex = `/${transpiledPattern}/${node.regex.flags}`;
40
precompileCalls.push(`precompile(${transpiledRegex});`);
0 commit comments