|
|
@ -18,7 +18,7 @@ Route::Route(const QString &route, const QString &data_dir) : data_dir_(data_dir |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RouteIdentifier Route::parseRoute(const QString &str) { |
|
|
|
RouteIdentifier Route::parseRoute(const QString &str) { |
|
|
|
QRegExp rx(R"(^(?:([a-z0-9]{16})([|_/]))?(\d{4}-\d{2}-\d{2}--\d{2}-\d{2}-\d{2})(?:(--|/)(\d*))?$)"); |
|
|
|
QRegExp rx(R"(^(?:([a-z0-9]{16})([|_/]))?(.{20})(?:(--|/)(\d*))?$)"); |
|
|
|
if (rx.indexIn(str) == -1) return {}; |
|
|
|
if (rx.indexIn(str) == -1) return {}; |
|
|
|
|
|
|
|
|
|
|
|
const QStringList list = rx.capturedTexts(); |
|
|
|
const QStringList list = rx.capturedTexts(); |
|
|
|