diff options
author | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 11:20:04 -0200 |
---|---|---|
committer | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 11:20:04 -0200 |
commit | 5d3d11ece8e8cf823f7118ef3af503a274844d1c (patch) | |
tree | a789e9b7ef4107a5acc30bbdc781622835b8b775 /src | |
parent | 1a6887295271402341658c9d0c3a17fa8bd891da (diff) | |
download | svn2git-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')
-rw-r--r-- | src/ruleparser.cpp | 4 |
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); |