]> andersk Git - svn-all-fast-export.git/commitdiff
Allow repository names with dashes too
authorThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 13:20:04 +0000 (11:20 -0200)
committerThiago Macieira <thiago@cassini.local.lan>
Mon, 24 Dec 2007 13:20:04 +0000 (11:20 -0200)
src/ruleparser.cpp

index c214440484c192b80cfec75f0acf69f15a50fdcd..d0b3b768cddca6e4c7af029990028dc44b5c83ba 100644 (file)
@@ -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);
 
This page took 0.057584 seconds and 5 git commands to generate.