Update ReduxFramework validation file

This commit is contained in:
Champ Camba
2017-01-27 20:33:16 +08:00
parent 5a6033bc66
commit 64fe56f911
@@ -27,7 +27,8 @@
*/
function validate() {
$this->value = preg_replace( $this->field['preg']['pattern'], $this->field['preg']['replacement'], $this->value );
$this->value = preg_replace_callback($this->field['preg']['pattern'], function($matches){return $this->field['preg']['replacement'];}, $this->value);
} //function
} //class
}