MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / isWordStart

Function isWordStart

scripts/hsr/widget-code-highlighting.mjs:4–6  ·  view source on GitHub ↗
(char)

Source from the content-addressed store, hash-verified

2const IDENTIFIERS = new Set(["ui", "SELF_EDIT_BANNER"]);
3
4function isWordStart(char) {
5 return /[A-Za-z_$]/.test(char);
6}
7
8function isWordPart(char) {
9 return /[A-Za-z0-9_$]/.test(char);

Callers 1

tokenizeCodeLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected