aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-11 17:45:23 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-11 17:45:23 +1300
commit00ae71b5b0dbc62f7cfbdb111afe4773f6d4178e (patch)
tree3699a0a8aa60cec748734a4968062e80132ee0fd /src/org/traccar
parent248dba62a8b1bd493341f3b9257d2f7a0edc4194 (diff)
downloadtrackermap-server-00ae71b5b0dbc62f7cfbdb111afe4773f6d4178e.tar.gz
trackermap-server-00ae71b5b0dbc62f7cfbdb111afe4773f6d4178e.tar.bz2
trackermap-server-00ae71b5b0dbc62f7cfbdb111afe4773f6d4178e.zip
Avoid using POSIX regex class
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/helper/PatternBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/PatternBuilder.java b/src/org/traccar/helper/PatternBuilder.java
index 6742e7130..3a8bdd868 100644
--- a/src/org/traccar/helper/PatternBuilder.java
+++ b/src/org/traccar/helper/PatternBuilder.java
@@ -48,7 +48,7 @@ public class PatternBuilder {
s = s.replace("dddd", "d{4}").replace("ddd", "d{3}").replace("dd", "d{2}");
s = s.replace("xxxx", "x{4}").replace("xxx", "x{3}").replace("xx", "x{2}");
- s = s.replace("d", "\\d").replace("x", "\\p{XDigit}").replaceAll("([\\.])", "\\\\$1");
+ s = s.replace("d", "\\d").replace("x", "[0-9a-fA-F]").replaceAll("([\\.])", "\\\\$1");
s = s.replaceAll("\\|$", "\\\\|").replaceAll("^\\|", "\\\\|"); // special case for delimiter
fragments.add(s);