From 7896ae0179fdb7d273443dabf6d397c7d44f6955 Mon Sep 17 00:00:00 2001 From: cdle Date: Mon, 5 Jun 2023 17:21:46 +0800 Subject: [PATCH] x --- core/node_strings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/node_strings.go b/core/node_strings.go index b2a397c..3c1ad48 100644 --- a/core/node_strings.go +++ b/core/node_strings.go @@ -174,5 +174,5 @@ func (sender *Strings) ReplaceToEmojis(str string, pattern string) string { } func (sender *Strings) ExtractAddress(input string) string { - return regexp.MustCompile(`http[s]?://[\w.]+:\d*`).FindString(input) + return regexp.MustCompile(`http[s]?://[\w.]+:?\d*`).FindString(input) }