fix new regex warning