fix branch info regex