From 36d06c790494d35951a416643b9e8aa8853f573e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 31 Jul 2018 01:26:27 +1200 Subject: Adjust Alematics regex pattern --- src/org/traccar/protocol/AlematicsProtocolDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') 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); } -- cgit v1.2.3