diff --git a/NoteExtender/NoteExtender.xml b/NoteExtender/NoteExtender.xml index 10e84f7..2dcf6fd 100644 --- a/NoteExtender/NoteExtender.xml +++ b/NoteExtender/NoteExtender.xml @@ -144,8 +144,8 @@ function shouldHyperlink(str, tbl) subject = subject .. v.text end - postNo = postNo:gsub("[^%z\1-\127]+", ""):gsub("%s+$", "") - author = author:gsub("[^%z\1-\127]+", ""):gsub("%s+$", "") + postNo = postNo:gsub("[^%z\1-\127]+", ""):gsub("%s+", "") + author = author:gsub("[^%z\1-\127]+", ""):gsub("%s+", "") subject = subject:gsub("[^%z\1-\127]+", ""):gsub("%s+$", "") byteSubj = subject:gsub("%p", function(c) return string.format("\\%d", string.byte(c)) end) str = str:gsub("[^%z\1-\127]+", ""):gsub("%s+$", ""):gsub("%p", function(c) return string.format("\\%d", string.byte(c)) end )