From 311d67a43ba7958c327d60a13e040a51cbb94139 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Thu, 18 Mar 2010 13:52:05 -0700 Subject: More constraint stuff in libpiny. --- usr/src/libpiny/lib/Piny/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src/libpiny/lib') diff --git a/usr/src/libpiny/lib/Piny/User.pm b/usr/src/libpiny/lib/Piny/User.pm index e4b865c..e0687a3 100644 --- a/usr/src/libpiny/lib/Piny/User.pm +++ b/usr/src/libpiny/lib/Piny/User.pm @@ -13,7 +13,7 @@ use Piny::Group; subtype 'Username' => as 'Str' - => where { $_ =~ /^(?!(git|ikiwiki)-)[[a-zA-Z0-9][a-zA-Z0-9_.-]*$/ } + => where { $_ =~ /^(?!(git|ikiwiki)-)[[a-zA-Z][a-zA-Z0-9_.-]*$/ } => message { 'That username is not in the correct format for a piny user.' } ; -- cgit v1.2.3