cvs: php-src /pear/PEAR Common.php
| From: | Greg Beaver | Date: | Tue, 16 Sep 2003 03:26:05 +0000 |
| Subject: | cvs: php-src /pear/PEAR Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12769@lists.php.net to get a copy of this message | ||
cellog Mon Sep 15 23:26:05 2003 EDT
Modified files:
/php-src/pear/PEAR Common.php
Log:
fix regexps for package detection and download - should be case-insensitive
Index: php-src/pear/PEAR/Common.php
diff -u php-src/pear/PEAR/Common.php:1.108 php-src/pear/PEAR/Common.php:1.109
--- php-src/pear/PEAR/Common.php:1.108 Mon Sep 15 09:11:57 2003
+++ php-src/pear/PEAR/Common.php Mon Sep 15 23:26:05 2003
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.108 2003/09/15 13:11:57 cellog Exp $
+// $Id: Common.php,v 1.109 2003/09/16 03:26:05 cellog Exp $
require_once 'PEAR.php';
require_once 'Archive/Tar.php';
@@ -26,10 +26,10 @@
// {{{ constants and globals
-define('PEAR_COMMON_PACKAGE_NAME_PREG',
'/^([A-Za-z][a-zA-Z0-9_]+|[a-z][a-z0-9_]+)$/');
+define('PEAR_COMMON_PACKAGE_NAME_PREG', '/^[A-Za-z][a-zA-Z0-9_]+$/');
// XXX far from perfect :-)
-define('PEAR_COMMON_PACKAGE_DOWNLOAD_PREG',
'/^([A-Z][a-zA-Z0-9_]+|[a-z][a-z0-9_]+)(-([.0-9a-zA-Z]+))?$/');
+define('PEAR_COMMON_PACKAGE_DOWNLOAD_PREG',
'/^([A-Za-z][a-zA-Z0-9_]+)(-([.0-9a-zA-Z]+))?$/');
/**
* List of temporary files and directories registered by