update angularjs patterns