This commit is contained in:
cdle
2023-06-05 17:21:46 +08:00
parent 4330a22a5f
commit 7896ae0179
+1 -1
View File
@@ -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)
}