Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

Commit

Permalink
Fix for zabbix version \d.\d.\d+ (2.0.13)
Browse files Browse the repository at this point in the history
  • Loading branch information
McLeod095 committed Dec 28, 2015
1 parent 64dc569 commit e8d71b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestVersion(t *testing.T) {
t.Fatal(err)
}
t.Logf("Zabbix version %s", v)
if !regexp.MustCompile(`^\d\.\d\.\d$`).MatchString(v) {
if !regexp.MustCompile(`^\d\.\d\.\d+$`).MatchString(v) {
t.Errorf("Unexpected version: %s", v)
}
}
Expand Down

0 comments on commit e8d71b4

Please sign in to comment.