Fix regex improvement security required in active model 4.0