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

Function isWordChar

src/utils/bash/bashParser.ts:196–220  ·  view source on GitHub ↗
(c: string)

Source from the content-addressed store, hash-verified

194}
195
196function isWordChar(c: string): boolean {
197 // Bash word chars: alphanumeric + various punctuation that doesn't start operators
198 return (
199 (c >= 'a' && c <= 'z') ||
200 (c >= 'A' && c <= 'Z') ||
201 (c >= '0' && c <= '9') ||
202 c === '_' ||
203 c === '/' ||
204 c === '.' ||
205 c === '-' ||
206 c === '+' ||
207 c === ':' ||
208 c === '@' ||
209 c === '%' ||
210 c === ',' ||
211 c === '~' ||
212 c === '^' ||
213 c === '?' ||
214 c === '*' ||
215 c === '!' ||
216 c === '=' ||
217 c === '[' ||
218 c === ']'
219 )
220}
221
222function isWordStart(c: string): boolean {
223 return isWordChar(c) || c === '\\'

Callers 3

isWordStartFunction · 0.85
nextTokenFunction · 0.85
isWordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected