aboutsummaryrefslogtreecommitdiffstats
path: root/src/ruleparser.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago@cassini.local.lan>2007-12-24 11:20:04 -0200
committerThiago Macieira <thiago@cassini.local.lan>2007-12-24 11:20:04 -0200
commit5d3d11ece8e8cf823f7118ef3af503a274844d1c (patch)
treea789e9b7ef4107a5acc30bbdc781622835b8b775 /src/ruleparser.cpp
parent1a6887295271402341658c9d0c3a17fa8bd891da (diff)
downloadsvn2git-5d3d11ece8e8cf823f7118ef3af503a274844d1c.tar
svn2git-5d3d11ece8e8cf823f7118ef3af503a274844d1c.tar.gz
svn2git-5d3d11ece8e8cf823f7118ef3af503a274844d1c.tar.bz2
svn2git-5d3d11ece8e8cf823f7118ef3af503a274844d1c.tar.xz
svn2git-5d3d11ece8e8cf823f7118ef3af503a274844d1c.zip
Allow repository names with dashes too
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r--src/ruleparser.cpp4
1 files 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);