Add regex to reef #1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user