Skip to content

Commit

Permalink
Fixed LUA pattern missing an escape for control character '-'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanDrake committed Jul 3, 2024
1 parent dfe54cd commit 84b2640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/write_metablock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function add_word(keywords, word)

-- preserve - in the middle of the word
if first ~= '-' and last ~= '-' then
chars = chars .. '-'
chars = chars .. '%-'
end

-- preserve _ in the middle of the word
Expand Down

0 comments on commit 84b2640

Please sign in to comment.