SOLR-12759: fix regexp

This commit is contained in:
David Smiley 2018-09-18 20:21:44 -04:00
parent 5abee478b6
commit c06a7ab0c7
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class ExtractingRequestHandlerTest extends SolrTestCaseJ4 {
@BeforeClass
public static void beforeClass() throws Exception {
// Is the JDK/env affected by a known bug?
if (!TimeZone.getDefault().getDisplayName(false, TimeZone.SHORT, Locale.US).matches("[A-Z]{3}([+-]\\d\\d(:\\d\\d)?)?")) {
if (!TimeZone.getDefault().getDisplayName(false, TimeZone.SHORT, Locale.US).matches("[A-Z]{3,4}([+-]\\d\\d(:\\d\\d)?)?")) {
assert System.getProperty("java.version").startsWith("11") : "Is some other JVM affected? Or bad regex?";
assumeTrue("SOLR-12759 JDK 11 (1st release) and Tika 1.x can result in extracting dates in a bad format.", false);
}