From 7e1a4b46d59f5266daf4652a3a60210c62012983 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 22 Jan 2023 12:31:49 -0700 Subject: keep: further expand set of removed punctuating marks; ()!? --- keep.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keep.go b/keep.go index df7c652..958bc55 100644 --- a/keep.go +++ b/keep.go @@ -199,9 +199,9 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { purell.FlagRemoveFragment| purell.FlagSortQuery) - // In this context, leading/trailing dots are more commonly punctuating + // In this context, leading/trailing marks are more commonly punctuating // and generate invalid URLs if preserved - uStr = strings.Trim(uStr, ".,") + uStr = strings.Trim(uStr, ".,()!?") // Ensure host is not present in ignoreList set if isIgnored(config.Ignore, uStr) { -- cgit v1.2.3-54-g00ecf