MCPcopy Create free account
hub / github.com/NaturalIntelligence/fast-xml-parser / isName

Function isName

src/util.js:24–27  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

22}
23
24export const isName = function (string) {
25 const match = regexName.exec(string);
26 return !(match === null || typeof match === 'undefined');
27}
28
29export function isExist(v) {
30 return typeof v !== 'undefined';

Callers 4

validateAttrNameFunction · 0.90
validateTagNameFunction · 0.90
readElementExpMethod · 0.85
validateEntityNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected