general code improvements
@@ -53,7 +53,7 @@ import org.apache.tika.sax.StandardReference.StandardReferenceBuilder;
public class StandardsText {
// Regular expression to match uppercase headers
private static final String REGEX_HEADER =
- "(\\d+\\.(\\d+\\.?)*)\\p{Blank}+([A-Z]+(\\s[A-Z]+)*){5,}";
+ "(\\d{1,10}\\.(\\d{1,10}\\.?){0,10})\\p{Blank}+([A-Z]{1,256}(\\s[A-Z]+){0,256}){5,}";
// Regular expression to match the "APPLICABLE DOCUMENTS" and equivalent
// sections
