From cbe085f44bb1b954ab330cef1710fd6365d5035a Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Fri, 31 Jan 2020 12:30:56 +0100 Subject: [PATCH 1/4] fix alt with charset prefix --- src/main/java/com/humio/jitrex/tree/RNode.java | 3 +++ src/test/java/com/humio/jitrex/PatternTest.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/com/humio/jitrex/tree/RNode.java b/src/main/java/com/humio/jitrex/tree/RNode.java index 1a74963..05df018 100644 --- a/src/main/java/com/humio/jitrex/tree/RNode.java +++ b/src/main/java/com/humio/jitrex/tree/RNode.java @@ -101,6 +101,9 @@ public void processFlags(int flags) { this.flags = flags; if (tail != null) tail.processFlags(flags); + if (isLowercase()) { + prefix = prefix.toLowerCase(); + } } public boolean isLowercase() { diff --git a/src/test/java/com/humio/jitrex/PatternTest.java b/src/test/java/com/humio/jitrex/PatternTest.java index 13cedbf..23148f5 100644 --- a/src/test/java/com/humio/jitrex/PatternTest.java +++ b/src/test/java/com/humio/jitrex/PatternTest.java @@ -297,4 +297,12 @@ public void testRangeSquare() { assertEquals(true, m.find()); } + + @Test + public void testAltRange() { + Pattern p = Pattern.compile("[Q]|x", Pattern.CASE_INSENSITIVE); + Matcher m = p.matcher("q"); + assertEquals(true, m.find()); + } + } From 5303cccfbb603ec2a3dfcbb1c855e9964f2fd8e3 Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Fri, 31 Jan 2020 10:24:30 +0100 Subject: [PATCH 2/4] update version to 0.1.13 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5afe665..e7d38ed 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ com.humio jitrex - 0.1-SNAPSHOT + 0.1.13 2019 scm:git:https://github.com/humio/jitrex From e503b9b4dab33aa987edbc96d6eb965319873905 Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Fri, 31 Jan 2020 10:25:59 +0100 Subject: [PATCH 3/4] also verify on release branch --- .github/workflows/verify.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 66f1482..d6c6abb 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -4,6 +4,7 @@ on: pull_request: branches: - master + - release/0.1 jobs: build: From 87017b11b64f00a7e99eb34c9676e6662ffa1313 Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Fri, 31 Jan 2020 12:34:14 +0100 Subject: [PATCH 4/4] update version to 0.1.14 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e7d38ed..0d5ff06 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ com.humio jitrex - 0.1.13 + 0.1.14 2019 scm:git:https://github.com/humio/jitrex