You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2018/11/09 20:58:45 UTC
lucene-solr:master: SOLR-12759: fix regexp (case insensitive)
Repository: lucene-solr
Updated Branches:
refs/heads/master 4410ef941 -> 0330372f0
SOLR-12759: fix regexp (case insensitive)
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/0330372f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/0330372f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/0330372f
Branch: refs/heads/master
Commit: 0330372f044b18b4bfac820d24fe5ddc783fbe7a
Parents: 4410ef9
Author: David Smiley <ds...@apache.org>
Authored: Fri Nov 9 15:58:40 2018 -0500
Committer: David Smiley <ds...@apache.org>
Committed: Fri Nov 9 15:58:40 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/0330372f/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);