MCPcopy Create free account
hub / github.com/editablejs/editable / isIdeograph

Function isIdeograph

packages/editor/src/utils/text.ts:63–64  ·  view source on GitHub ↗
(char: string)

Source from the content-addressed store, hash-verified

61const isSpace = (char: string) => /\s/.test(char)
62// http://www.unicode.org/charts/
63const isIdeograph = (char: string) =>
64 /[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f\u3131-\uD79D]/.test(char)
65// http://www.unicode.org/charts/
66// https://zh.wikipedia.org/zh-cn/Unicode%E5%AD%97%E7%AC%A6%E5%88%97%E8%A1%A8
67const isSpecialCharacters = (char: string) =>

Callers 2

equalOfCharacterTypeFunction · 0.85
splitTextOfWordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…