From 9529acd4771d34124929740e8df159010ba36634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Wed, 9 Apr 2025 23:23:37 +0200 Subject: [PATCH] Adjust the regexp --- app/models/enterprise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 823c161e3d..5bd406ece8 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -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? }