mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-10 09:29:18 +00: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
|