mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Fix:修复在safari浏览器中运行时,页面空白且控制台抛出异常的问题
This commit is contained in:
@@ -887,7 +887,7 @@ class Render {
|
||||
)
|
||||
} else {
|
||||
text = htmlEscape(text)
|
||||
const textArr = text.split(/\r?\n|(?<!\n)\r/g).filter(item => {
|
||||
const textArr = text.split(new RegExp('\r?\n|(?<!\n)\r', 'g')).filter(item => {
|
||||
return !!item
|
||||
})
|
||||
// 判断是否需要根据换行自动分割节点
|
||||
|
||||
Reference in New Issue
Block a user