aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-07-06 21:56:56 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-07-06 21:56:56 -0700
commit830b117453b913802c52af25cf67e11a2e6d4ea9 (patch)
tree0e7fc5a063958383e197b3a4b9948abf352c28f6 /src/main
parenta50bc86cb8be51423ad1b473bcab99c8bb298b0b (diff)
downloadtrackermap-server-830b117453b913802c52af25cf67e11a2e6d4ea9.tar.gz
trackermap-server-830b117453b913802c52af25cf67e11a2e6d4ea9.tar.bz2
trackermap-server-830b117453b913802c52af25cf67e11a2e6d4ea9.zip
Support comma-separated id
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/PluginProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java b/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java
index 3f87a774b..106889ee0 100644
--- a/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/PluginProtocolDecoder.java
@@ -34,8 +34,8 @@ public class PluginProtocolDecoder extends BaseProtocolDecoder {
}
private static final Pattern PATTERN = new PatternBuilder()
- .expression("[^0-9]*")
- .number("(d+),") // device id
+ .expression("[^0-9,]*,?")
+ .number("([^,]+),") // device id
.number("(dddd)(dd)(dd)") // date (yyyymmdd)
.number("(dd)(dd)(dd),") // time (hhmmss)
.number("(-?d+.d+),") // longitude