diff --git a/docs/prototype/figma-lab/fake-figma.js b/docs/prototype/figma-lab/fake-figma.js index 1290365..8d3ed18 100644 --- a/docs/prototype/figma-lab/fake-figma.js +++ b/docs/prototype/figma-lab/fake-figma.js @@ -32,7 +32,7 @@ function fakeFigma(options = {}) { }; const dirty = (node) => { mark(node, ++stamp); }; const fontKey = (font) => `${font.family}/${font.style}`; - const cjk = /[ -鿿＀-￯]/; + const cjk = /[\u3000-\u9fff\uff00-\uffef]/; const textWidth = (node) => { let width = 0; for (const char of node._characters) width += cjk.test(char) ? node.fontSize : node.fontSize * 0.55;