/** * {@inheritDoc} */ public function applyFilter($value) { //Check for Whitespace support $whitespaceChar = $this->allowWhitespace ? " " : ""; $this->unicodePattern = '/[^\\p{N}' . $whitespaceChar . ']/'; $this->pattern = '/[^0-9' . $whitespaceChar . ']/'; return parent::applyFilter($value); }