Better regexp for `ready_to_commit`