diff --git a/plugins/amda/src/AmdaResultParser.cpp b/plugins/amda/src/AmdaResultParser.cpp index ee192f2..586363b 100644 --- a/plugins/amda/src/AmdaResultParser.cpp +++ b/plugins/amda/src/AmdaResultParser.cpp @@ -24,11 +24,11 @@ const auto DATE_FORMAT = QStringLiteral("yyyy-MM-ddThh:mm:ss.zzz"); const auto RESULT_LINE_SEPARATOR = QRegularExpression{QStringLiteral("\\s+")}; /// Regex to find unit in a line. Examples of valid lines: -/// ... - Units : nT - ... -/// ... -Units:nT- ... -/// ... -Units: m²- ... -/// ... - Units : m/s - ... -const auto UNIT_REGEX = QRegularExpression{QStringLiteral("-\\s*Units\\s*:\\s*(.+?)\\s*-")}; +/// ... PARAMETER_UNITS : nT ... +/// ... PARAMETER_UNITS:nT ... +/// ... PARAMETER_UNITS: m² ... +/// ... PARAMETER_UNITS : m/s ... +const auto UNIT_REGEX = QRegularExpression{QStringLiteral("\\s*PARAMETER_UNITS\\s*:\\s*(.+)")}; /// Converts a string date to a double date /// @return a double that represents the date in seconds, NaN if the string date can't be converted