MCPcopy Create free account
hub / github.com/dchester/jsonpath / isIdentifierPart

Function isIdentifierPart

jsonpath.js:258–265  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

256 }
257
258 function isIdentifierPart(ch) {
259 return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)
260 (ch >= 0x41 && ch <= 0x5A) || // A..Z
261 (ch >= 0x61 && ch <= 0x7A) || // a..z
262 (ch >= 0x30 && ch <= 0x39) || // 0..9
263 (ch === 0x5C) || // \ (backslash)
264 ((ch >= 0x80) && Regex.NonAsciiIdentifierPart.test(String.fromCharCode(ch)));
265 }
266
267 // 7.6.1.2 Future Reserved Words
268

Callers 3

getEscapedIdentifierFunction · 0.85
getIdentifierFunction · 0.85
scanRegExpFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected