aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/PatternBuilderTest.java
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 /test/org/traccar/helper/PatternBuilderTest.java
parent248dba62a8b1bd493341f3b9257d2f7a0edc4194 (diff)
downloadtrackermap-server-00ae71b5b0dbc62f7cfbdb111afe4773f6d4178e.tar.gz
trackermap-server-00ae71b5b0dbc62f7cfbdb111afe4773f6d4178e.tar.bz2
trackermap-server-00ae71b5b0dbc62f7cfbdb111afe4773f6d4178e.zip
Avoid using POSIX regex class
Diffstat (limited to 'test/org/traccar/helper/PatternBuilderTest.java')
-rw-r--r--test/org/traccar/helper/PatternBuilderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/org/traccar/helper/PatternBuilderTest.java b/test/org/traccar/helper/PatternBuilderTest.java
index 36054bcea..975cc1621 100644
--- a/test/org/traccar/helper/PatternBuilderTest.java
+++ b/test/org/traccar/helper/PatternBuilderTest.java
@@ -8,7 +8,7 @@ public class PatternBuilderTest {
@Test
public void testPatternBuilder() {
Assert.assertEquals("\\$GPRMC", new PatternBuilder().text("$GPRMC").toString());
- Assert.assertEquals("(\\d{2}\\.\\p{XDigit}+)", new PatternBuilder().number("(dd.x+)").toString());
+ Assert.assertEquals("(\\d{2}\\.[0-9a-fA-F]+)", new PatternBuilder().number("(dd.x+)").toString());
Assert.assertEquals("a(?:bc)?", new PatternBuilder().text("a").text("b").text("c").optional(2).toString());
Assert.assertEquals("a|b", new PatternBuilder().expression("a|b").toString());
Assert.assertEquals("ab\\|", new PatternBuilder().expression("ab|").toString());