MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / isWordChar

Function isWordChar

static/js/codemirror/codemirror.js:4984–4987  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

4982
4983 var nonASCIISingleCaseWordChar = /[\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc]/;
4984 function isWordChar(ch) {
4985 return /\w/.test(ch) || ch > "\x80" &&
4986 (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
4987 }
4988
4989 function isEmpty(obj) {
4990 for (var n in obj) if (obj.hasOwnProperty(n) && obj[n]) return false;

Callers 2

findPosHFunction · 0.85
findWordAtFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected