| 200 | } |
| 201 | |
| 202 | QString EELParser::getDescription() |
| 203 | { |
| 204 | QRegularExpression descRe(R"((?:^|(?<=\n))(?:desc:)([\s\S][^\n]*))"); |
| 205 | |
| 206 | for (const auto &line : container.code.split("\n")) |
| 207 | { |
| 208 | auto matchIterator = descRe.globalMatch(line); |
| 209 | |
| 210 | if (matchIterator.hasNext()) |
| 211 | { |
| 212 | auto match = matchIterator.next(); |
| 213 | return match.captured(1).trimmed(); |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | return QFileInfo(container.path).fileName(); |
| 218 | } |
| 219 | |
| 220 | EELProperties EELParser::getProperties() |
| 221 | { |
no test coverage detected