mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
Fix screen_name regex being too lenient
This commit is contained in:
parent
7222f36ef3
commit
47bccdb0c3
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class User < ApplicationRecord # rubocop:disable Metrics/ClassLength
|
|||
foreign_key: "banned_by_id",
|
||||
dependent: :nullify
|
||||
|
||||
SCREEN_NAME_REGEX = /[a-zA-Z0-9_]/
|
||||
SCREEN_NAME_REGEX = /\A[a-zA-Z0-9_]+\z/
|
||||
WEBSITE_REGEX = /https?:\/\/([A-Za-z.-]+)\/?(?:.*)/i
|
||||
|
||||
before_validation do
|
||||
|
|
Loading…
Reference in a new issue