[Buildman] [limb-issues] Created: (BMN-2) ./src/model/Build.class.php const BUILD_NAME_REGEX = '~^r(\d+)-((\d+)_(\d+)_(\d+)-(\d+)_(\d+)_(\d+))-([-\w]+)$~'; - IS WRONG!!
Eugene Klimov (JIRA)
jira at limb-project.com
Fri Jul 13 10:01:56 MSD 2007
./src/model/Build.class.php const BUILD_NAME_REGEX = '~^r(\d+)-((\d+)_(\d+)_(\d+)-(\d+)_(\d+)_(\d+))-([-\w]+)$~'; - IS WRONG!!
----------------------------------------------------------------------------------------------------------------------------------
Key: BMN-2
URL: http://jira.limb-project.com/browse/BMN-2
Project: Buildman
Issue Type: Bug
Reporter: Eugene Klimov
Assigned To: Pavel Shevaev
если у меня имя проекта типа
dev.myproject.ru, то неверно работает regexp
//add exception handling later
preg_match(Build :: BUILD_NAME_REGEX, $this->build_name, $m);
const BUILD_NAME_REGEX = '~^r(\d+)-((\d+)_(\d+)_(\d+)-(\d+)_(\d+)_(\d+))-([-\w]+)$~';
и мы получаем всякую шнягу в $m =)) и всяческие
Notice: Undefined offset: 9 in C:\usr\local\apache\htdocs\snaps.west-torg.ru\src\model\Build.class.php on line
вот в этом куске кода
$this->project_name = $m[9];
$this->build_revision = $m[1];
$this->build_date = $m[2];
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the buildman
mailing list