Skip to content

Commit 8d6da69

Browse files
Guy BedfordJakeChampion
authored andcommitted
fixup formatting
1 parent f659ccf commit 8d6da69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/precompile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import MagicString from "magic-string";
44
import { simple as simpleWalk } from "acorn-walk";
55

66
const PREAMBLE = `;{ const precompileRegex = (r) => { r.exec('a'); r.exec('\\u1000'); }; `;
7-
const POSTAMBLE = "; };";
7+
const POSTAMBLE = "; }; ";
88

99
/// Emit a block of javascript that will pre-compile the regular expressions given. As spidermonkey
1010
/// will intern regular expressions, duplicating them at the top level and testing them with both
@@ -35,7 +35,7 @@ export function precompile(source, filename = "<input>") {
3535
transpiledPattern = pattern;
3636
}
3737
const transpiledRegex = `/${transpiledPattern}/${regex.flags}`;
38-
precompileCalls.push(`precompile(${transpiledRegex});`);
38+
precompileCalls.push(`precompile(${transpiledRegex})`);
3939
magicString.overwrite(node.start, node.end, tranpiledRegex);
4040
},
4141
});

0 commit comments

Comments
 (0)