Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2
const
IDENTIFIERS =
new
Set([
"ui"
,
"SELF_EDIT_BANNER"
]);
3
4
function
isWordStart(char) {
5
return
/[A-Za-z_$]/.test(char);
6
}
7
8
function
isWordPart(char) {
9
return
/[A-Za-z0-9_$]/.test(char);
Callers
1
tokenizeCodeLine
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected