From a7bafafa06a99842bd49639cd4bfa0fcf08f5428 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Tue, 6 Dec 2016 21:58:17 +1300 Subject: [PATCH] Yet another wikipedia url char added to regex --- app/models/crop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/crop.rb b/app/models/crop.rb index 2fc9a6ad1..8d14f981c 100644 --- a/app/models/crop.rb +++ b/app/models/crop.rb @@ -42,7 +42,7 @@ class Crop < ActiveRecord::Base # rubocop:disable Metrics/ClassLength ## Wikipedia urls are only necessary when approving a crop validates :en_wikipedia_url, format: { - with: /\Ahttps?:\/\/en\.wikipedia\.org\/wiki\/[[:alnum:]%_()-]+\z/, + with: /\Ahttps?:\/\/en\.wikipedia\.org\/wiki\/[[:alnum:]%_\.()-]+\z/, message: 'is not a valid English Wikipedia URL' }, if: :approved?