/src/main/java/org/htmlunit/html/HtmlInput.java
if ( !isBlankPatternValidated( ) || StringUtils.isBlank( value) ) {
if ( !isBlankPatternValidated ( ) && StringUtils.isBlank ( value ) ) {
return true; } final String value = getValue(); if (StringUtils.isEmpty(value)) { return true; } <extra_id_0> return true; } final RegExpJsToJavaConverter converter = new RegExpJsToJavaConverter(); final String javaPattern = converter.convert(pattern); try { return Pattern.matches(javaPattern, value);