From 4ceaa9877f62c23e2d2e95c621fc51d1a656d7c5 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Fri, 15 Apr 2011 20:10:17 -0700 Subject: Making httpurl constraint also allow https urls --- libpiny/lib/Piny/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpiny/lib/Piny/Config.pm') diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm index 5cd99da..718af5c 100644 --- a/libpiny/lib/Piny/Config.pm +++ b/libpiny/lib/Piny/Config.pm @@ -35,8 +35,8 @@ subtype 'PathDir' subtype 'HttpUrl' => as 'Str' - => where { $_ =~ /^http:\/\//i } - => message { 'Not a http:// URL.' } + => where { $_ =~ /^(http|https):\/\//i } + => message { 'Not a http:// or https:// URL.' } ; subtype 'HttpsUrl' -- cgit v1.2.3