aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-07-31 01:26:27 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-07-31 10:27:21 +1200
commit36d06c790494d35951a416643b9e8aa8853f573e (patch)
tree5bf718cb584e2e343abd556b8ed44bd6e5ec78c2 /src/org/traccar
parent6135c6230bbbb27228029c46fa61fcdb9b274efc (diff)
downloadtrackermap-server-36d06c790494d35951a416643b9e8aa8853f573e.tar.gz
trackermap-server-36d06c790494d35951a416643b9e8aa8853f573e.tar.bz2
trackermap-server-36d06c790494d35951a416643b9e8aa8853f573e.zip
Adjust Alematics regex pattern
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/AlematicsProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AlematicsProtocolDecoder.java b/src/org/traccar/protocol/AlematicsProtocolDecoder.java
index 794588f5f..8909b8d5b 100644
--- a/src/org/traccar/protocol/AlematicsProtocolDecoder.java
+++ b/src/org/traccar/protocol/AlematicsProtocolDecoder.java
@@ -60,6 +60,8 @@ public class AlematicsProtocolDecoder extends BaseProtocolDecoder {
.or()
.number("(d+),") // extra mask
.expression("(.*)") // extra data
+ .or()
+ .any()
.groupEnd()
.compile();
@@ -144,7 +146,7 @@ public class AlematicsProtocolDecoder extends BaseProtocolDecoder {
if (parser.hasNext()) {
position.set("text", parser.next());
- } else {
+ } else if (parser.hasNext()) {
decodeExtras(position, parser);
}