mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Improve the no-white-spaces regexp for enterprises
This commit is contained in:
@@ -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? }
|
||||
|
||||
Reference in New Issue
Block a user