voldikss / coc-browser

See https://github.com/voldikss/coc-extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't seem to support non-English characters

kantord opened this issue · comments

2021-01-09T11:12+01:00

Looking at the screenshot, it would be expected that "felfüggesztette" would show up in the suggestions, but it doesn't. Words that only contain characters also present in the English alphabet word fine, for example Twitter, tesztre, azokat, etc.

It's probably because of this line: https://github.com/voldikss/coc-browser/blob/master/extension/src/content.js#L18

By default, JavaScript regular expressions don't support unicode.

There is a way to enable this though: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode

Also closed due to #10