Valid import statements should be at the start of a line, maybe
preceded by some white space.
Task-number: QTBUG-20649
Change-Id: I1944bce0d30e680ebdb0798f5ae4e8c91a057a13
Reviewed-on: http://codereview.qt.nokia.com/2423
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
return;
}
- QRegExp quick1("import +QtQuick +1\\.");
- QRegExp qt47("import +Qt +4\\.7");
+ QRegExp quick1("^\\s*import +QtQuick +1\\.");
+ QRegExp qt47("^\\s*import +Qt +4\\.7");
QString envToWrite;
QString compat;