diff --git a/util.go b/util.go index 054337f..90950e5 100644 --- a/util.go +++ b/util.go @@ -11,7 +11,7 @@ import ( ) var ( - reHashtag = regexp.MustCompile(`\B(\#\w+\b)`) + reHashtag = regexp.MustCompile(`\B(\#\S+\b)`) reTwitterURL = regexp.MustCompile(`https:(\/\/t\.co\/([A-Za-z0-9]|[A-Za-z]){10})`) reUsername = regexp.MustCompile(`\B(\@\S{1,15}\b)`) )