mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-19 00:33:17 +00:00
5 lines
134 B
Ruby
5 lines
134 B
Ruby
class Tag < ApplicationRecord
|
|
HASHTAG_RE = /[?:^|\s|\.|>]#([[:word:]_]+)/i
|
|
|
|
validates :name, presence: true, uniqueness: true
|
|
end
|