summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/lib
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 13:52:05 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 13:52:05 -0700
commit311d67a43ba7958c327d60a13e040a51cbb94139 (patch)
tree92f3d853180d8653f42dbf3b99be17b7b9e2dbb4 /usr/src/libpiny/lib
parenta02d7015f4c45c782d81c526a068cde73fc7bf8f (diff)
downloadpiny-code-311d67a43ba7958c327d60a13e040a51cbb94139.tar.gz
piny-code-311d67a43ba7958c327d60a13e040a51cbb94139.zip
More constraint stuff in libpiny.
Diffstat (limited to 'usr/src/libpiny/lib')
-rw-r--r--usr/src/libpiny/lib/Piny/User.pm2
1 files changed, 1 insertions, 1 deletions
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.' }
;