aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-03-23 22:01:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-03-23 22:01:22 +1300
commit160e0c32eccdce5bfab5f449e291a7b45703b823 (patch)
tree80ddea9b1b0269aa4d9bb18cd5a5598fcec0141e /src/org/traccar/protocol
parenta2709e3e9c2615e95139f03aec1c5e734f33f191 (diff)
downloadtraccar-server-160e0c32eccdce5bfab5f449e291a7b45703b823.tar.gz
traccar-server-160e0c32eccdce5bfab5f449e291a7b45703b823.tar.bz2
traccar-server-160e0c32eccdce5bfab5f449e291a7b45703b823.zip
Fix Wondex protocol
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/WondexProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WondexProtocolDecoder.java b/src/org/traccar/protocol/WondexProtocolDecoder.java
index 5e3f3f390..964ecf5ff 100644
--- a/src/org/traccar/protocol/WondexProtocolDecoder.java
+++ b/src/org/traccar/protocol/WondexProtocolDecoder.java
@@ -36,7 +36,7 @@ public class WondexProtocolDecoder extends BaseProtocolDecoder {
* Regular expressions pattern
*/
static private Pattern pattern = Pattern.compile(
- ".*" + // Header
+ "[^\\d]*" + // Header
"(\\d+)," + // Device Identifier
"(\\d{4})(\\d{2})(\\d{2})" + // Date (YYYYMMDD)
"(\\d{2})(\\d{2})(\\d{2})," + // Time (HHMMSS)