aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNomarian <nomarian@outlook.com>2025-10-09 10:48:08 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-10-12 21:00:37 +0200
commit426de34f970548f798604ad0b0668105457fe1b0 (patch)
tree07b1508c1f5adef2e20f01c324bec5c9bc73802e
parent6f01f568155554778e890368a746815ea034f509 (diff)
downloadvis-spellcheck-426de34f970548f798604ad0b0668105457fe1b0.tar.gz
vis-spellcheck-426de34f970548f798604ad0b0668105457fe1b0.zip
typo_iter typo iterator gmatch"%S+" instead of (.-)\n
-rw-r--r--spellcheck.lua2
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