Fix `stripAffix`'s regexp