MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isAlphaNumUnderscore

Function isAlphaNumUnderscore

packages/queryLanguage/src/tokens.ts:34–39  ·  view source on GitHub ↗
(ch: number)

Source from the content-addressed store, hash-verified

32}
33
34function isAlphaNumUnderscore(ch: number): boolean {
35 return (ch >= 65 && ch <= 90) || // A-Z
36 (ch >= 97 && ch <= 122) || // a-z
37 (ch >= 48 && ch <= 57) || // 0-9
38 ch === 95; // _
39}
40
41/**
42 * Checks if the input at current position matches the given string.

Callers 2

isOrKeywordFunction · 0.85
tokens.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected