Skip to content

Commit

Permalink
fix: use 0xa0 unicode instead
Browse files Browse the repository at this point in the history
  • Loading branch information
hanye9895 authored and lyngai committed Jan 5, 2022
1 parent 75eee5b commit ec9cbac
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
Expand Up @@ -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.*?)*?)';
Expand Down

0 comments on commit ec9cbac

Please sign in to comment.