Fixed stupid bugs.

master
AardCrowley 2 years ago committed by GitHub
parent 4e61f58514
commit e92ffd9438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -145,12 +145,12 @@ function shouldHyperlink(str, tbl)
end end
postNo = postNo:gsub("[^%z\1-\127]+", ""):gsub("%s+", "") postNo = postNo:gsub("[^%z\1-\127]+", ""):gsub("%s+", "")
author = author:gsub("[^%z\1-\127]+", ""):gsub("%s+", "") author = author:gsub("[^%z\1-\127]+", ""):gsub("%s+$", "")
subject = subject:gsub("[^%z\1-\127]+", ""):gsub("%s+$", "") subject = subject:gsub("%s+$", "")
byteSubj = subject:gsub("%p", function(c) return string.format("\\%d", string.byte(c)) end) compSubj = subject:gsub("[^%w]+", "")
str = str:gsub("[^%z\1-\127]+", ""):gsub("%s+$", ""):gsub("%p", function(c) return string.format("\\%d", string.byte(c)) end ) str = str:gsub("[^%w]+", "")
if str:find(postNo) or str:find(author) or str:find(byteSubj) then if str:find(postNo) or str:find(author) or str:find(compSubj) then
youShould = true youShould = true
end end

Loading…
Cancel
Save