Use regex
This commit is contained in:
parent
e8ca64f16b
commit
d490b29265
@ -275,7 +275,7 @@ QStringList CueParser::SplitCueLine(const QString &line) const {
|
||||
}
|
||||
|
||||
// Let's remove the empty entries while we're at it
|
||||
return re_match.capturedTexts().filter(QRegularExpression(".+")).mid(1, -1).replaceInStrings("\"\"", "");
|
||||
return re_match.capturedTexts().filter(QRegularExpression(".+")).mid(1, -1).replaceInStrings(QRegularExpression("^\"\"$"), "");
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user