From ae41559b2c2f5d236ca660f8714ea92fce2b0ecd Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Thu, 27 Oct 2005 20:35:21 +0200 Subject: [PATCH] fixed darcs patchset guessing in version check darcs-hash:20051027183521-7ad00-08b33c7960975925fdb001476bd14124e9ff3f51.gz --- inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/common.php b/inc/common.php index 531e11477..4e8dd1f85 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1047,7 +1047,7 @@ function getVersion(){ }elseif(is_dir('_darcs')){ //darcs checkout $inv = file('_darcs/inventory'); - $inv = preg_grep('#andi@splitbrain\.org\*\*\d{14}#',$inv); + $inv = preg_grep('#\*\*\d{14}[\]$]#',$inv); $cur = array_pop($inv); preg_match('#\*\*(\d{4})(\d{2})(\d{2})#',$cur,$matches); return 'Darcs '.$matches[1].'-'.$matches[2].'-'.$matches[3]; -- GitLab