Strip everything after a dash character in the minor version part