mirror of
https://github.com/hansjone/mind-map.git
synced 2026-10-09 09:20:45 +08:00
fix: isolate canvas CJK strings and guard build encoding
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2ecd300ada
commit
288ebf4c90
7 changed files with 431 additions and 53 deletions
|
|
@ -2,9 +2,8 @@
|
|||
from pathlib import Path
|
||||
|
||||
d = Path(__file__).resolve().parents[1] / "dist" / "assets"
|
||||
js_path = next(d.glob("index-*.js"))
|
||||
js = js_path.read_text(encoding="utf-8")
|
||||
js = next(d.glob("index-*.js")).read_text(encoding="utf-8")
|
||||
needles = ["选择", "平移", "连线", "单点", "整枝", "气泡", "卡片", "解钉", "撤销"]
|
||||
print(js_path.name)
|
||||
print(next(d.glob("index-*.js")).name)
|
||||
print({n: (n in js) for n in needles})
|
||||
print("corrupt select:", '["select","??"' in js or '["select", "??"' in js)
|
||||
print("corrupt select:", '["select","??"' in js)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue