When pattern option is defined or the target element has a data-pattern attribute, the filter method will simply output false if the requested format does not match with the input.
pattern
data-pattern
filter
false