diff options
| author | Nomarian <nomarian@outlook.com> | 2025-10-09 10:48:08 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-10-12 21:00:37 +0200 |
| commit | 426de34f970548f798604ad0b0668105457fe1b0 (patch) | |
| tree | 07b1508c1f5adef2e20f01c324bec5c9bc73802e /spellcheck.lua | |
| parent | 6f01f568155554778e890368a746815ea034f509 (diff) | |
| download | vis-spellcheck-426de34f970548f798604ad0b0668105457fe1b0.tar.gz vis-spellcheck-426de34f970548f798604ad0b0668105457fe1b0.zip | |
typo_iter typo iterator gmatch"%S+" instead of (.-)\n
Diffstat (limited to 'spellcheck.lua')
| -rw-r--r-- | spellcheck.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua index c0133ae..009aa12 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -114,7 +114,7 @@ end -- Which will return the next typo and its start and finish in the text, starting by 1. local function typo_iter(text, typos, ignored) -- luacheck: ignore ignored local index = 1 - local unfiltered_iterator, iter_state = typos:gmatch('(.-)\n') + local unfiltered_iterator, iter_state = typos:gmatch'%S+' return function() local typo |
