diff options
| author | Tannin <sherb@gmx.net> | 2016-06-02 19:45:04 +0200 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2016-06-02 19:45:04 +0200 |
| commit | 4f1bb369330a0728e11a83bd334f8904b1c2ecc2 (patch) | |
| tree | c16da01e205144573fd0a94f93e3f7693ba28b00 /src/nexusinterface.cpp | |
| parent | cbdea13a9c079f3de114cb96418b500e0f1d297a (diff) | |
fixed some filename/modname handling for names received from nexus
Diffstat (limited to 'src/nexusinterface.cpp')
| -rw-r--r-- | src/nexusinterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp index 2c690aa4..6e989b0d 100644 --- a/src/nexusinterface.cpp +++ b/src/nexusinterface.cpp @@ -194,7 +194,7 @@ void NexusInterface::loginCompleted() void NexusInterface::interpretNexusFileName(const QString &fileName, QString &modName, int &modID, bool query)
{
//Look for something along the lines of modulename-Vn-m + any old rubbish.
- static std::regex exp("^([a-zA-Z0-9_'\"\\-.() ]*?)([-_ ][VvRr]?[0-9_]+)?-([1-9][0-9]+).*\\.(zip|rar|7z)");
+ static std::regex exp(R"exp(^([a-zA-Z0-9_'"\-.() ]*?)([-_ ][VvRr]?[0-9_]+)?-([1-9][0-9]*).*\.(zip|rar|7z))exp");
static std::regex simpleexp("^([a-zA-Z0-9_]+)");
QByteArray fileNameUTF8 = fileName.toUtf8();
|
