summaryrefslogtreecommitdiff
path: root/src/nexusinterface.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-06-02 19:45:04 +0200
committerTannin <sherb@gmx.net>2016-06-02 19:45:04 +0200
commit4f1bb369330a0728e11a83bd334f8904b1c2ecc2 (patch)
treec16da01e205144573fd0a94f93e3f7693ba28b00 /src/nexusinterface.cpp
parentcbdea13a9c079f3de114cb96418b500e0f1d297a (diff)
fixed some filename/modname handling for names received from nexus
Diffstat (limited to 'src/nexusinterface.cpp')
-rw-r--r--src/nexusinterface.cpp2
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();