forked from qt-creator/qt-creator
Git: Allow . in checkout pathes
Task-number: QTCREATORBUG-3141
This commit is contained in:
@@ -128,7 +128,7 @@ QString CloneWizardPage::directoryFromRepository(const QString &urlIn) const
|
||||
}
|
||||
// fix invalid characters
|
||||
const QChar dash = QLatin1Char('-');
|
||||
url.replace(QRegExp(QLatin1String("[^0-9a-zA-Z_-]")), dash);
|
||||
url.replace(QRegExp(QLatin1String("[^0-9a-zA-Z_.-]")), dash);
|
||||
// trim leading dashes (they are annoying and get created when using local pathes)
|
||||
url.replace(QRegExp(QLatin1String("^-+")), QString());
|
||||
return url;
|
||||
|
||||
Reference in New Issue
Block a user