summaryrefslogtreecommitdiff
path: root/libpiny/lib/Piny/User
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-12-30 22:42:23 -0800
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-12-30 22:42:23 -0800
commit372b5f9a390116177870154ddfd3a36d5dcb8d32 (patch)
tree80c7e7184dcc64b3fbf215f4cd947ee7ed9c2e5c /libpiny/lib/Piny/User
parent7e0cccfb334067f98b962a454ae65cd697c23515 (diff)
downloadpiny-code-372b5f9a390116177870154ddfd3a36d5dcb8d32.tar.gz
piny-code-372b5f9a390116177870154ddfd3a36d5dcb8d32.zip
Bringing Ikiwiki Username constraint in line with Reponame constraint (Debian Policy 5.6.1, 5.6.7)
Diffstat (limited to 'libpiny/lib/Piny/User')
-rw-r--r--libpiny/lib/Piny/User/IkiWiki.pm2
1 files changed, 1 insertions, 1 deletions
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.' }
;