update regex to support new git version