Fix Stackoverflow regex (#796)
This commit is contained in:
parent
1bfb5c7b2f
commit
ff877ec2aa
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class User < ApplicationRecord
|
|||
validates :stackoverflow_url,
|
||||
allow_blank: true,
|
||||
format:
|
||||
/\Ahttps:\/\/(www.stackoverflow.com|stackoverflow.com)\/users\/([0-9]{3,10})\/([a-zA-Z0-9\s\'\-]{3,30})\/?\Z/
|
||||
/\Ahttps:\/\/(www.stackoverflow.com|stackoverflow.com|www.stackexchange.com|stackexchange.com)\/([\S]{3,100})\Z/
|
||||
validates :behance_url,
|
||||
allow_blank: true,
|
||||
format: /\Ahttps:\/\/(www.behance.net|behance.net)\/([a-zA-Z0-9\-\_]{3,20})\/?\Z/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue