Adjust the regexp

This commit is contained in:
François Turbelin
2025-04-09 23:23:37 +02:00
parent 243d81c786
commit 9529acd477

View File

@@ -134,7 +134,7 @@ class Enterprise < ApplicationRecord
}, allow_blank: true
validate :validate_white_label_logo_link
validates :external_billing_id,
format: { with: /\A\S+\Z/ },
format: { with: /\A\S+\z/ },
allow_blank: true
before_validation :initialize_permalink, if: lambda { permalink.nil? }