aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
diff options
context:
space:
mode:
authorhallmark9 <spamsink05@yahoo.com>2012-12-23 21:59:13 -0500
committerhallmark9 <spamsink05@yahoo.com>2012-12-23 21:59:13 -0500
commitc8281d6a4dbb8ded05f58d9428d86569a6d94b80 (patch)
tree5f90c3be0ee9f6965222b329e7d279a3060fa0b5 /src/org/traccar/protocol/Xexun2ProtocolDecoder.java
parentfbb0d0d594bd423ad102c2b5a38526b928918fb9 (diff)
downloadtrackermap-server-c8281d6a4dbb8ded05f58d9428d86569a6d94b80.tar.gz
trackermap-server-c8281d6a4dbb8ded05f58d9428d86569a6d94b80.tar.bz2
trackermap-server-c8281d6a4dbb8ded05f58d9428d86569a6d94b80.zip
Tolerate phone number without "+" prefix in Xexun2 data
Diffstat (limited to 'src/org/traccar/protocol/Xexun2ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Xexun2ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
index 39a5f76c0..54f502667 100644
--- a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
@@ -44,7 +44,7 @@ public class Xexun2ProtocolDecoder extends GenericProtocolDecoder {
static private Pattern pattern = Pattern.compile(
"[\r\n]*" +
"(\\d+)," + // Serial
- "(\\+\\d+)," + // Number
+ "(\\+?\\d+)," + // Number
"GPRMC," +
"(\\d{2})(\\d{2})(\\d{2})\\.(\\d{3})," + // Time (HHMMSS.SSS)
"([AV])," + // Validity