Merge pull request #822 from waelkarman/issue-821-fix-segmentation-fault
All checks were successful
buildbot/DocsGenerator Build finished.
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
buildbot/WindowsCMakeBuilder Build finished.

fix: improve import filter by adding a space after the import statement
This commit is contained in:
Andrei Yankovich 2024-07-17 16:59:23 +03:00 committed by GitHub
commit 7cce7f3b05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ QStringList QMLQt6::extractImportsFromFile(const QString &filepath) const {
{
word = word.simplified();
if (word.startsWith("//")) continue;
if (!word.startsWith("import")) continue;
if (!word.startsWith("import ")) continue;
imports += extractImportLine(word);
}