aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/PatternBuilder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-17 13:09:05 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-17 13:09:05 +1300
commitda76f9195ec6fbf0e6a0a6419eec908b91f844b7 (patch)
treead5617253f8c2db48d6111339bba585cb18ea3d0 /src/org/traccar/helper/PatternBuilder.java
parent8fcd8010074624277537375edc3e473096020ed3 (diff)
downloadtrackermap-server-da76f9195ec6fbf0e6a0a6419eec908b91f844b7.tar.gz
trackermap-server-da76f9195ec6fbf0e6a0a6419eec908b91f844b7.tar.bz2
trackermap-server-da76f9195ec6fbf0e6a0a6419eec908b91f844b7.zip
Refactor GPS103 protocol decoder
Diffstat (limited to 'src/org/traccar/helper/PatternBuilder.java')
-rw-r--r--src/org/traccar/helper/PatternBuilder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/helper/PatternBuilder.java b/src/org/traccar/helper/PatternBuilder.java
index fbef144e6..a0e24e017 100644
--- a/src/org/traccar/helper/PatternBuilder.java
+++ b/src/org/traccar/helper/PatternBuilder.java
@@ -82,6 +82,10 @@ public class PatternBuilder {
}
}
+ public PatternBuilder or() {
+ return xpr("|");
+ }
+
public Pattern compile() {
return Pattern.compile(pattern.toString(), Pattern.DOTALL);
}