MCPcopy Index your code
hub / github.com/DHTMLX/gantt / isWordCharBasic

Function isWordCharBasic

samples/common/codehighlight/codemirror.js:268–271  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

266
267 var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
268 function isWordCharBasic(ch) {
269 return /\w/.test(ch) || ch > "\x80" &&
270 (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch))
271 }
272 function isWordChar(ch, helper) {
273 if (!helper) { return isWordCharBasic(ch) }
274 if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) { return true }

Callers 1

isWordCharFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected