missing equals sign in webhook url validation (#483)

This commit is contained in:
Will Power
2018-04-20 12:27:16 +01:00
committed by Adam Cooke
parent 15c6795a24
commit b3456036c0
+1 -1
View File
@@ -28,7 +28,7 @@ class Webhook < ApplicationRecord
has_many :webhook_requests has_many :webhook_requests
validates :name, :presence => true 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) } scope :enabled, -> { where(:enabled => true) }