From 5d3d11ece8e8cf823f7118ef3af503a274844d1c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 24 Dec 2007 11:20:04 -0200 Subject: [PATCH] Allow repository names with dashes too --- src/ruleparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index c214440..d0b3b76 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -47,10 +47,10 @@ void Rules::load() return; // initialize the regexps we will use - QRegExp repoLine("create repository\\s+(\\w+)", Qt::CaseInsensitive); + QRegExp repoLine("create repository\\s+(\\S+)", Qt::CaseInsensitive); QRegExp repoBranchLine("branch\\s+(\\S+)\\s+from\\s+(\\S+)", Qt::CaseInsensitive); QRegExp matchLine("match\\s+(.*)", Qt::CaseInsensitive); - QRegExp matchRepoLine("repository\\s+(\\w+)", Qt::CaseInsensitive); + QRegExp matchRepoLine("repository\\s+(\\S+)", Qt::CaseInsensitive); QRegExp matchBranchLine("branch\\s+(\\S+)", Qt::CaseInsensitive); QRegExp matchPathLine("path\\s+(.*)", Qt::CaseInsensitive); -- 2.45.1