MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isEnvironmentVariableAssignment

Function isEnvironmentVariableAssignment

src/utils/bash/bashPipeCommand.ts:219–221  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

217 * followed by letters, numbers, or underscores
218 */
219function 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.

Callers 1

buildCommandPartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected