Skip to content

Commit dc74533

Browse files
author
Mich
committed
Patched broken timestamp parsing when loading file
1 parent c4275f2 commit dc74533

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Enjoy !
1818
*Notes:*
1919

2020

21-
*The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=", ":" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
21+
*The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
2222

2323
*Examples of supported formats:*
2424

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Enjoy !
1818
*Notes:*
1919

2020

21-
*The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=", ":" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
21+
*The app uses a custom-written parser, which searches the incoming message for plottable data in form of label-value set. At the moment, all labels and values **must be separated with a whitespace** in order to be recognized. Its possible to use separators like "=" and "," - parser will be replace them with whitespace before processing. If no label is found, a generic name will be used i.e. "Graph 0".*
2222

2323
*Examples of supported formats:*
2424

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void Parser::parse(QString inputString, bool syncToSystemClock, bool useExternal
3838

3939
QRegExp mainSymbols("[+-]?\\d*\\.?\\d+"); // float only // QRegExp mainSymbols("[-+]?[0-9]*\.?[0-9]+");
4040
QRegExp alphanumericSymbols("\\w+");
41-
QRegExp sepSymbols("[=:,]");
41+
QRegExp sepSymbols("[=,]");
4242

4343
inputStringSplitArrayLines[l].replace(sepSymbols, " ");
4444
QStringList inputStringSplitArray = inputStringSplitArrayLines[l].simplified().split(QRegExp("\\s+"), QString::SplitBehavior::SkipEmptyParts); // rozdzielamy traktująac spacje jako separator

0 commit comments

Comments
 (0)