mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
Fix spellcheck word matching for non-ASCII characters #564
This commit is contained in:
parent
44568c79ab
commit
62f5c2a76f
|
@ -64,7 +64,7 @@ function renderMark(props) {
|
||||||
|
|
||||||
function decorationsForNode(node, value) {
|
function decorationsForNode(node, value) {
|
||||||
const { key, text } = node;
|
const { key, text } = node;
|
||||||
const regexp = /[\w]+/g;
|
const regexp = /([^\s.,¿?!:()[\]+><"“”|*&^%$#@—-]+)/g;
|
||||||
const decorations = [];
|
const decorations = [];
|
||||||
let match = null;
|
let match = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue