about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-03-12 17:52:19 -0500
committerDavid Yip <yipdw@member.fsf.org>2018-03-12 17:52:19 -0500
commitf8e934f95551179de48a716d4f148bb7bec638d1 (patch)
tree79ca73d8d3346dc5ee5a38bce919e43e3c4e99bd /app/models
parent22f2750578c64af4e886b0cc704aa0be4ee209b0 (diff)
parent051b649628d8039ff15f0c035c6f8fe5dbf045d6 (diff)
Merge remote-tracking branch 'origin/master' into merge-upstream
 Conflicts:
	README.md
Diffstat (limited to 'app/models')
-rw-r--r--app/models/tag.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tag.rb b/app/models/tag.rb
index dc2c8d129..9fa9405d7 100644
--- a/app/models/tag.rb
+++ b/app/models/tag.rb
@@ -12,7 +12,7 @@
 class Tag < ApplicationRecord
   has_and_belongs_to_many :statuses
 
-  HASHTAG_NAME_RE = '[[:word:]_]*[[:alpha:]_][[:word:]_]*'
+  HASHTAG_NAME_RE = '[[:word:]_]*[[:alpha:]_·][[:word:]_]*'
   HASHTAG_RE = /(?:^|[^\/\)\w])#(#{HASHTAG_NAME_RE})/i
 
   validates :name, presence: true, uniqueness: true, format: { with: /\A#{HASHTAG_NAME_RE}\z/i }