Skip to content

Commit

Permalink
fix: use 0xa0 unicode instead
Browse files Browse the repository at this point in the history
hanye9895 authored and lyngai committed Jan 5, 2022
1 parent 4a22fa6 commit 171bdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/regexp.js
Original file line number Diff line number Diff line change
@@ -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.*?)*?)';

0 comments on commit 171bdcc

Please sign in to comment.