Skip to content

Commit

Permalink
Merge pull request #822 from waelkarman/issue-821-fix-segmentation-fault
Browse files Browse the repository at this point in the history
fix: improve import filter by adding a space after the import statement
  • Loading branch information
EndrII authored Jul 17, 2024
2 parents cc86d97 + 6c217b0 commit 7cce7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Deploy/src/qmlqt6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7cce7f3

Please sign in to comment.