Fix small bug in regex when parsing the expression for gitprompt.