diff --git a/README.md b/README.md index fc292c7..5eddf38 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ This plugin adds a fully featured grammar and spell checker for SiYuan, powered - [x] Grammar checker like Grammarly - [x] Free and open-source - [x] [Self-hostable](https://dev.languagetool.org/http-server) grammar checking server -- [x] Offline mode (only simple spell checking) - [x] Underlines are not edited into your notes
Why does this matter? @@ -43,8 +42,6 @@ This project couldn't have been possible without (in no particular order): - The [SiYuan](https://github.com/siyuan-note/siyuan) project - [SiYuan plugin sample with vite and svelte](https://github.com/siyuan-note/plugin-sample-vite-svelte) - [LanguageTool](https://languagetool.org/) -- [ESpells](https://github.com/Monkatraz/espells) -- The authors of [offline dictionaries](https://github.com/wooorm/dictionaries?tab=readme-ov-file#list-of-dictionaries) Make sure you check them out and support them as well! diff --git a/package.json b/package.json index 3e55d9a..6f8213f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "syspell", - "version": "0.2.1", + "version": "0.2.0", "type": "module", "description": "Include a whiteboard for freehand drawing anywhere in your documents.", "repository": "https://git.massive.box/massivebox/siyuan-jsdraw-plugin", diff --git a/plugin.json b/plugin.json index ea7e078..133800e 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "name": "syspell", "author": "massivebox", "url": "https://git.massive.box/massivebox/syspell", - "version": "0.2.1", + "version": "0.2.0", "minAppVersion": "3.0.12", "backends": [ "windows", diff --git a/src/espells.ts b/src/espells.ts index a3a90b6..70ae166 100644 --- a/src/espells.ts +++ b/src/espells.ts @@ -15,7 +15,7 @@ export class ESpellChecker implements SpellChecker { let suggestions: Suggestion[] = [] - const regex = /[\p{L}']+/gu; + const regex = /[\w']+/g; let match; while ((match = regex.exec(text)) !== null) {