| 47 | } |
| 48 | |
| 49 | QStringList parseCommand(const QString &input) |
| 50 | { |
| 51 | QRegularExpression regex(R"((?:\"([^\"]*)\")|(\S+))"); |
| 52 | QStringList result; |
| 53 | auto it = regex.globalMatch(input); |
| 54 | while (it.hasNext()) { |
| 55 | QRegularExpressionMatch match = it.next(); |
| 56 | if (match.hasMatch()) { |
| 57 | result << (match.captured(1).isEmpty() ? match.captured(2) : match.captured(1)); |
| 58 | } |
| 59 | } |
| 60 | return result; |
| 61 | } |
| 62 | |
| 63 | bool YACReader::openComicInThirdPartyApp(const QString &command, const QString &path) |
| 64 | { |
no test coverage detected