From e92ffd9438e838c636b9476c33932d252a1fbf23 Mon Sep 17 00:00:00 2001 From: AardCrowley Date: Thu, 23 Mar 2023 11:06:12 -0400 Subject: [PATCH] Fixed stupid bugs. --- NoteExtender/NoteExtender.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NoteExtender/NoteExtender.xml b/NoteExtender/NoteExtender.xml index 2dcf6fd..fe7afe7 100644 --- a/NoteExtender/NoteExtender.xml +++ b/NoteExtender/NoteExtender.xml @@ -145,12 +145,12 @@ function shouldHyperlink(str, tbl) end 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 ) + author = author:gsub("[^%z\1-\127]+", ""):gsub("%s+$", "") + subject = subject:gsub("%s+$", "") + compSubj = subject:gsub("[^%w]+", "") + 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 end