* Checks if a string is an environment variable assignment (VAR=value) * Environment variable names must start with letter or underscore, * followed by letters, numbers, or underscores
(str: string)
| 217 | * followed by letters, numbers, or underscores |
| 218 | */ |
| 219 | function isEnvironmentVariableAssignment(str: string): boolean { |
| 220 | return /^[A-Za-z_][A-Za-z0-9_]*=/.test(str) |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Checks if an operator is a command separator that starts a new command context. |