cvs: pear-core /PEAR Validate.php
| From: | Greg Beaver | Date: | Wed, 03 Nov 2004 22:37:43 +0000 |
| Subject: | cvs: pear-core /PEAR Validate.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1219@lists.php.net to get a copy of this message | ||
cellog Wed Nov 3 17:37:43 2004 EDT
Modified files:
/pear-core/PEAR Validate.php
Log:
missed a - that must be removed in cut and paste of regex
http://cvs.php.net/diff.php/pear-core/PEAR/Validate.php?r1=1.20&r2=1.21&ty=u
Index: pear-core/PEAR/Validate.php
diff -u pear-core/PEAR/Validate.php:1.20 pear-core/PEAR/Validate.php:1.21
--- pear-core/PEAR/Validate.php:1.20 Wed Nov 3 17:28:17 2004
+++ pear-core/PEAR/Validate.php Wed Nov 3 17:37:42 2004
@@ -16,7 +16,7 @@
// | Authors: Gregory Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Validate.php,v 1.20 2004/11/03 22:28:17 cellog Exp $
+// $Id: Validate.php,v 1.21 2004/11/03 22:37:42 cellog Exp $
define('PEAR_VALIDATE_INSTALLING', 1);
define('PEAR_VALIDATE_UNINSTALLING', 2); // this is not bit-mapped like the others
define('PEAR_VALIDATE_NORMAL', 3);
@@ -65,7 +65,7 @@
{
if ($validatepackagename) {
if (strtolower($name) == strtolower($validatepackagename)) {
- return (bool) preg_match('/^[a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_]+)*$/',
$name);
+ return (bool) preg_match('/^[a-zA-Z0-9_]+(?:\.[a-zA-Z0-9_]+)*$/', $name);
}
}
return $this->_validPackageName($name);