fix a typo
simplify some conditions by using rxt-branch-end-regexp