fix incbin parsing for multiple matches
This commit is contained in:
parent
0e93e28f1b
commit
70980f5e42
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ QString ParseUtil::readCIncbin(const QString &filename, const QString &label) {
|
||||||
|
|
||||||
this->text = readTextFile(this->root + "/" + filename);
|
this->text = readTextFile(this->root + "/" + filename);
|
||||||
|
|
||||||
int start = this->text.indexOf(label);
|
int start = this->text.indexOf(QRegularExpression(label + "\b"));
|
||||||
if (start < 0) return path;
|
if (start < 0) return path;
|
||||||
int end = this->text.indexOf(';', start);
|
int end = this->text.indexOf(';', start);
|
||||||
QString incbinText = this->text.mid(start, end - start);
|
QString incbinText = this->text.mid(start, end - start);
|
||||||
|
|
Loading…
Reference in a new issue