about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-18 12:17:45 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-18 12:24:37 +0100
commit6de079a5af328d26d7cbc8daf3367d16c311fddb (patch)
tree61ef4718e0fe10b8da0c6103876fae739f4e9ee8 /app/models
parentc4ffffbeedda400a85951ca4fc74ce1d54c96032 (diff)
Removing external hub completely, fix #333 fixing digit-only hashtags,
removing web app capability from non-webapp pages
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 e5b0511ae..77a73cce8 100644
--- a/app/models/tag.rb
+++ b/app/models/tag.rb
@@ -3,7 +3,7 @@
 class Tag < ApplicationRecord
   has_and_belongs_to_many :statuses
 
-  HASHTAG_RE = /(?:^|[^\/\w])#([[:word:]_]+)/i
+  HASHTAG_RE = /(?:^|[^\/\w])#([[:word:]_]*[[:alpha:]_][[:word:]_]*)/i
 
   validates :name, presence: true, uniqueness: true