From 171bdcca5c121fdad2a1bf57a9b397b7ed7e56d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E9=87=8E?= Date: Wed, 5 Jan 2022 15:38:56 +0800 Subject: [PATCH] fix: use 0xa0 unicode instead https://github.com/Tencent/cherry-markdown/pull/84#discussion_r778531298 #84 --- src/utils/regexp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/regexp.js b/src/utils/regexp.js index 16deeb2e1..60b0d7dc6 100644 --- a/src/utils/regexp.js +++ b/src/utils/regexp.js @@ -30,7 +30,7 @@ export function isLookbehindSupported() { return false; } -export const HORIZONTAL_WHITESPACE = '[ \\t ]'; +export const HORIZONTAL_WHITESPACE = '[ \\t\\u00a0]'; // 仅适用非多行模式的正则 export const ALLOW_WHITESPACE_MULTILINE = '(?:.*?)(?:(?:\\n.*?)*?)';