diff options
author | Jordan <me@jordan.im> | 2023-01-22 12:31:49 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-01-22 12:31:49 -0700 |
commit | 7e1a4b46d59f5266daf4652a3a60210c62012983 (patch) | |
tree | 02b71ef02ca3a49fc7873658b6ddd9f3e0137fd7 | |
parent | 550bc286582e26fadc85508572c75d81bcfcd13a (diff) | |
download | keep-7e1a4b46d59f5266daf4652a3a60210c62012983.tar.gz keep-7e1a4b46d59f5266daf4652a3a60210c62012983.zip |
keep: further expand set of removed punctuating marks; ()!?
-rw-r--r-- | keep.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |