1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

Add possibility to use other ports than 80/443 in webhooks (#234)

* Added possibility to use other ports than 80/443

* simplify regex to allow colon anywhere
هذا الالتزام موجود في:
anhofmann
2017-08-21 23:23:31 +02:00
ملتزم من قبل Charlie Smurthwaite
الأصل 5634640fd8
التزام 98daf6d30c

عرض الملف

@@ -28,7 +28,7 @@ class Webhook < ApplicationRecord
has_many :webhook_requests
validates :name, :presence => true
validates :url, :presence => true, :format => {:with => /\Ahttps?\:\/\/[a-z0-9\-\.\_\?\&\/\+]+\z/i, :allow_blank => true}
validates :url, :presence => true, :format => {:with => /\Ahttps?\:\/\/[a-z0-9\-\.\_\?\&\/\+:]+\z/i, :allow_blank => true}
scope :enabled, -> { where(:enabled => true) }