diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-03-11 14:55:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-11 14:55:49 +0100 |
commit | 1aaec701bb505b83cea1838e785235a7364d6641 (patch) | |
tree | 108ab0c6a4dcd9c244b15129dd0f6c78ae1f880a /app/models | |
parent | cd252b794e4fc473b1ecece79a51f1f2dc1f0812 (diff) |
Fix #6715: Make catalan words with the L geminate letter work in hashtags (#6741)
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 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 } |