From 2a33510c96f37ea4f56ccf937f22fc15e1237e25 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Mon, 6 Jun 2011 23:24:00 +0200 Subject: [PATCH] \w doesn't match -, so better use [^)] to match server names --- src/IDF/Scm/Monotone/Usher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Scm/Monotone/Usher.php b/src/IDF/Scm/Monotone/Usher.php index bbe4704..4d389bf 100644 --- a/src/IDF/Scm/Monotone/Usher.php +++ b/src/IDF/Scm/Monotone/Usher.php @@ -76,7 +76,7 @@ class IDF_Scm_Monotone_Usher $single_conns = preg_split('/[ ]/', $conn, -1, PREG_SPLIT_NO_EMPTY); $ret = array(); foreach ($single_conns as $conn) { - preg_match('/\((\w+)\)([^:]+):(\d+)/', $conn, $matches); + preg_match('/\(([^)]+)\)([^:]+):(\d+)/', $conn, $matches); $ret[$matches[1]][] = (object)array( 'server' => $matches[1], 'address' => $matches[2],