From 372b5f9a390116177870154ddfd3a36d5dcb8d32 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Fri, 30 Dec 2011 22:42:23 -0800 Subject: Bringing Ikiwiki Username constraint in line with Reponame constraint (Debian Policy 5.6.1, 5.6.7) --- libpiny/lib/Piny/User/IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpiny') diff --git a/libpiny/lib/Piny/User/IkiWiki.pm b/libpiny/lib/Piny/User/IkiWiki.pm index 3838f38..48e77ec 100644 --- a/libpiny/lib/Piny/User/IkiWiki.pm +++ b/libpiny/lib/Piny/User/IkiWiki.pm @@ -18,7 +18,7 @@ extends "Piny::User"; subtype 'IkiWikiUsername' => as 'Str' - => where { $_ =~ /^iki-[a-zA-Z][a-zA-Z0-9_.-]*$/ } + => where { $_ =~ /^iki-[a-zA-Z0-9][a-zA-Z0-9_.-]*$/ } => message { 'That username is not in the correct format for an ikiwiki user.' } ; -- cgit v1.2.3