Improve the no-white-spaces regexp for enterprises

This commit is contained in:
François Turbelin
2025-02-04 23:10:15 +01:00
parent 6d78ee8be4
commit 98251b306e

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: /^\S+$/ },
allow_blank: true
before_validation :initialize_permalink, if: lambda { permalink.nil? }