MCPcopy Index your code
hub / github.com/callstack/agent-device / isReplayEnvLine

Function isReplayEnvLine

src/replay/script.ts:113–115  ·  view source on GitHub ↗
(trimmed: string)

Source from the content-addressed store, hash-verified

111}
112
113function isReplayEnvLine(trimmed: string): boolean {
114 return trimmed === 'env' || trimmed.startsWith('env ') || trimmed.startsWith('env\t');
115}
116
117function parseReplayEnvLine(trimmed: string, lineNumber: number): { key: string; value: string } {
118 const body = trimmed.slice(3).replace(/^[\s]+/, '');

Callers 2

readReplayScriptMetadataFunction · 0.85

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected