diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-19 10:10:05 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-19 10:10:05 -0800 |
commit | daa652338717cdcb83c66e9e78fb337b9d86f83d (patch) | |
tree | 6fa2582ec49b76ad1cd40def8141701bf21c8dcb | |
parent | 95ea36d99ff7686b36f1bfb11ec784d7a24e0205 (diff) | |
download | trackermap-server-daa652338717cdcb83c66e9e78fb337b9d86f83d.tar.gz trackermap-server-daa652338717cdcb83c66e9e78fb337b9d86f83d.tar.bz2 trackermap-server-daa652338717cdcb83c66e9e78fb337b9d86f83d.zip |
Handle line break
-rw-r--r-- | src/org/traccar/protocol/NeosProtocolDecoder.java | 1 | ||||
-rw-r--r-- | test/org/traccar/protocol/NeosProtocolDecoderTest.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NeosProtocolDecoder.java b/src/org/traccar/protocol/NeosProtocolDecoder.java index f88f454a1..6b5596dba 100644 --- a/src/org/traccar/protocol/NeosProtocolDecoder.java +++ b/src/org/traccar/protocol/NeosProtocolDecoder.java @@ -56,6 +56,7 @@ public class NeosProtocolDecoder extends BaseProtocolDecoder { .number("([01]{8})") // input .text("*") .number("xx!") + .any() .compile(); @Override diff --git a/test/org/traccar/protocol/NeosProtocolDecoderTest.java b/test/org/traccar/protocol/NeosProtocolDecoderTest.java index 6bb939cc9..a8db30476 100644 --- a/test/org/traccar/protocol/NeosProtocolDecoderTest.java +++ b/test/org/traccar/protocol/NeosProtocolDecoderTest.java @@ -11,7 +11,7 @@ public class NeosProtocolDecoderTest extends ProtocolTest { NeosProtocolDecoder decoder = new NeosProtocolDecoder(null); verifyPosition(decoder, text( - ">12345678,1,1,070201,144111,W05829.2613,S3435.2313,,00,034,25,00,126-000,0,3,11111111*2d!")); + ">12345678,1,1,070201,144111,W05829.2613,S3435.2313,,00,034,25,00,126-000,0,3,11111111*2d!\r\n")); } |