aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2023-01-22 12:31:49 -0700
committerJordan <me@jordan.im>2023-01-22 12:31:49 -0700
commit7e1a4b46d59f5266daf4652a3a60210c62012983 (patch)
tree02b71ef02ca3a49fc7873658b6ddd9f3e0137fd7
parent550bc286582e26fadc85508572c75d81bcfcd13a (diff)
downloadkeep-7e1a4b46d59f5266daf4652a3a60210c62012983.tar.gz
keep-7e1a4b46d59f5266daf4652a3a60210c62012983.zip
keep: further expand set of removed punctuating marks; ()!?
-rw-r--r--keep.go4
1 files 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) {