summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-24 09:24:00 +0100
committerYorhel <git@yorhel.nl>2008-12-24 09:24:00 +0100
commit5ffbe4d78a5fd435e30df261732a6299008911a3 (patch)
treea3bd64cced5d14b5eb16c695adb0790eb61c4053 /lib
parentaed1e6fb5fca211479b60564251e928f31f079fc (diff)
Allow the pname template to start with a number as well
Diffstat (limited to 'lib')
-rw-r--r--lib/YAWF/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/YAWF/Misc.pm b/lib/YAWF/Misc.pm
index e0a7fdd..e92ae99 100644
--- a/lib/YAWF/Misc.pm
+++ b/lib/YAWF/Misc.pm
@@ -19,7 +19,7 @@ our %templates = (
url => qr/^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?$/,
asciiprint => qr/^[\x20-\x7E]*$/,
int => qr/^-?\d+$/,
- pname => qr/^[a-z][a-z0-9-]*$/,
+ pname => qr/^[a-z0-9-]*$/,
);