diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-18 12:17:45 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-18 12:24:37 +0100 |
commit | 6de079a5af328d26d7cbc8daf3367d16c311fddb (patch) | |
tree | 61ef4718e0fe10b8da0c6103876fae739f4e9ee8 /app/models | |
parent | c4ffffbeedda400a85951ca4fc74ce1d54c96032 (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.rb | 2 |
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 |