From fa7589293a84235a920348a24f7f093f96156204 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Thu, 16 Oct 2025 14:13:39 -0700 Subject: [PATCH] Update bytecode.ts --- src/bytecode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bytecode.ts b/src/bytecode.ts index 4e8ae75..7824054 100644 --- a/src/bytecode.ts +++ b/src/bytecode.ts @@ -507,7 +507,7 @@ function toBytecodeFromString(str: string): Bytecode /* throws */ { } catch (e) { throw new Error(`Invalid regex literal: ${operand}`) } - }else { + } else { // Assume it's a variable name if it doesn't match any other pattern // This allows emoji, Unicode, and other creative identifiers // (already checked that it doesn't start with . # or match other patterns)