From b3456036c005fd89ed033e44ab25822bddd380f5 Mon Sep 17 00:00:00 2001 From: Will Power <1619102+willpower232@users.noreply.github.com> Date: Fri, 20 Apr 2018 12:27:16 +0100 Subject: [PATCH] missing equals sign in webhook url validation (#483) --- app/models/webhook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/webhook.rb b/app/models/webhook.rb index d2dc24e..65431d6 100644 --- a/app/models/webhook.rb +++ b/app/models/webhook.rb @@ -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) }