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)