diff --git a/app/models/user.rb b/app/models/user.rb index 9406aca4..c3a2bfd1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -61,6 +61,7 @@ class User < ApplicationRecord # rubocop:disable Metrics/ClassLength end validates :email, fake_email: true, typoed_email: true + validates :sharing_custom_url, format: URI::DEFAULT_PARSER.make_regexp(%w[http https]) validates :screen_name, presence: true, format: { with: SCREEN_NAME_REGEX, message: I18n.t("activerecord.validation.user.screen_name.format") },