Skip to content

Commit

Permalink
fix: update version regex to allow additional suffixes (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ns2Kracy authored Dec 13, 2024
1 parent d70a363 commit 40c4d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/status_serivce.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var EventTypeMapMessageType = map[EventType]message_bus.EventType{
InstallError: common.EventTypeInstallUpdateError,
}

var versionRegexp = regexp.MustCompile(`^v(\d)+\.(\d)+.(\d)+(-(alpha|beta)(\d))?$`)
var versionRegexp = regexp.MustCompile(`^v(\d)+\.(\d)+.(\d)+(-(alpha|beta)?(\d)+)?$`)

func NewStatusService(implementService UpdaterServiceInterface, sysRoot string) *StatusService {
statusService := &StatusService{
Expand Down

0 comments on commit 40c4d8c

Please # to comment.