use `version.split('-')[0]`?