diff options
author | Thiritin <me@thiritin.com> | 2021-06-22 18:05:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 18:05:45 +0200 |
commit | 35f15c94da399c479d1b5987043178a59cbd8b35 (patch) | |
tree | faa6c84026635e973a3708616e527354cb77fed8 /src | |
parent | f2c949998733734543be2ec795b2aa9b909b0044 (diff) | |
download | traccar-server-35f15c94da399c479d1b5987043178a59cbd8b35.tar.gz traccar-server-35f15c94da399c479d1b5987043178a59cbd8b35.tar.bz2 traccar-server-35f15c94da399c479d1b5987043178a59cbd8b35.zip |
Make it optional
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java index fae73d931..706307d89 100644 --- a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java @@ -276,7 +276,7 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder { .groupEnd("?").text(",") .number("(d+)?,") // rfid .number("([01])(d)?").optional() // charge and belt status - .expression("[^,]*,") + .expression("[^,]*,").optional() .number("(d+)?,") // battery .expression("([^,]*)[,;]") // alert .any() |