mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
6 lines
134 B
Ruby
6 lines
134 B
Ruby
class Tag < ApplicationRecord
|
|
HASHTAG_RE = /[?:^|\s|\.|>]#([[:word:]_]+)/i
|
|
|
|
validates :name, presence: true, uniqueness: true
|
|
end
|