From e60132dc040d2af3a5ad4f7ea8ee2e5fab7675ee Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 28 Oct 2015 14:23:04 +1300 Subject: Format pattern builder comments --- src/org/traccar/protocol/FreedomProtocolDecoder.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/org/traccar/protocol/FreedomProtocolDecoder.java b/src/org/traccar/protocol/FreedomProtocolDecoder.java index 40abe1b8d..c5ef5a146 100644 --- a/src/org/traccar/protocol/FreedomProtocolDecoder.java +++ b/src/org/traccar/protocol/FreedomProtocolDecoder.java @@ -32,12 +32,14 @@ public class FreedomProtocolDecoder extends BaseProtocolDecoder { private static final Pattern PATTERN = new PatternBuilder() .text("IMEI,") - .number("(d+),") // IMEI - .number("(dddd)/(dd)/(dd), ") // Date - .number("(dd):(dd):(dd), ") // Time - .number("([NS]), Lat:(dd)(d+.d+), ") // Latitude - .number("([EW]), Lon:(ddd)(d+.d+), ") // Longitude - .text("Spd:").number("(d+.d+)") // Speed + .number("(d+),") // imei + .number("(dddd)/(dd)/(dd), ") // date + .number("(dd):(dd):(dd), ") // time + .expression("([NS]), ") + .number("Lat:(dd)(d+.d+), ") // latitude + .expression("([EW]), ") + .number("Lon:(ddd)(d+.d+), ") // longitude + .text("Spd:").number("(d+.d+)") // speed .any() .compile(); -- cgit v1.2.3