x
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/cdle/sillyplus/emoji"
|
||||
"github.com/cdle/sillyplus/utils"
|
||||
)
|
||||
|
||||
type Strings struct {
|
||||
@@ -201,3 +202,7 @@ 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)
|
||||
}
|
||||
|
||||
func (sender *Strings) Unique(str ...interface{}) []string {
|
||||
return utils.Unique(str...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user