mirror of
https://github.com/neocities/neocities.git
synced 2025-05-15 00:47:16 +02:00
check tag input
This commit is contained in:
parent
6444fe7e94
commit
9800a4ad4b
3 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
class Tag < Sequel::Model
|
||||
NAME_LENGTH_MAX = 25
|
||||
NAME_WORDS_MAX = 1
|
||||
INVALID_TAG_REGEX = /[^a-zA-Z0-9 ]/
|
||||
many_to_many :sites
|
||||
|
||||
def before_create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue