lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsmi...@apache.org
Subject lucene-solr:branch_7x: SOLR-12759: fix regexp (case insensitive)
Date Fri, 09 Nov 2018 20:59:39 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 9d280252d -> 2e8d13973


SOLR-12759: fix regexp (case insensitive)

(cherry picked from commit 0330372f044b18b4bfac820d24fe5ddc783fbe7a)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2e8d1397
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2e8d1397
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2e8d1397

Branch: refs/heads/branch_7x
Commit: 2e8d13973838144eb165d66f6bbb133b6c9f1ea9
Parents: 9d28025
Author: David Smiley <dsmiley@apache.org>
Authored: Fri Nov 9 15:58:40 2018 -0500
Committer: David Smiley <dsmiley@apache.org>
Committed: Fri Nov 9 15:59:34 2018 -0500

----------------------------------------------------------------------
 .../solr/handler/extraction/ExtractingRequestHandlerTest.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2e8d1397/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
----------------------------------------------------------------------
diff --git a/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
b/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
index 132b371..00b7bf9 100644
--- a/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
+++ b/solr/contrib/extraction/src/test/org/apache/solr/handler/extraction/ExtractingRequestHandlerTest.java
@@ -46,7 +46,7 @@ public class ExtractingRequestHandlerTest extends SolrTestCaseJ4 {
   public static void beforeClass() throws Exception {
     // Is the JDK/env affected by a known bug?
     final String tzDisplayName = TimeZone.getDefault().getDisplayName(false, TimeZone.SHORT,
Locale.US);
-    if (!tzDisplayName.matches("[A-Z]{3,}([+-]\\d\\d(:\\d\\d)?)?")) {
+    if (!tzDisplayName.matches("[A-Za-z]{3,}([+-]\\d\\d(:\\d\\d)?)?")) {
       assertTrue("Is some other JVM affected?  Or bad regex? TzDisplayName: " + tzDisplayName,
           System.getProperty("java.version").startsWith("11"));
       assumeTrue("SOLR-12759 JDK 11 (1st release) and Tika 1.x can result in extracting dates
in a bad format.", false);


Mime
View raw message