MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isWordChar

Function isWordChar

static/editor.md/lib/codemirror/lib/codemirror.js:8116–8120  ·  view source on GitHub ↗
(ch, helper)

Source from the content-addressed store, hash-verified

8114 (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
8115 };
8116 function isWordChar(ch, helper) {
8117 if (!helper) return isWordCharBasic(ch);
8118 if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) return true;
8119 return helper.test(ch);
8120 }
8121
8122 function isEmpty(obj) {
8123 for (var n in obj) if (obj.hasOwnProperty(n) && obj[n]) return false;

Callers 2

findPosHFunction · 0.70
codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected