From 213fbd283a0c5ef18ef3baccf750fcf573cb43f8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 19 Aug 2020 22:07:15 +0900 Subject: [PATCH] ebiten: Bug fix: Skip the tests correctly --- image_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_test.go b/image_test.go index 0686c67d6..3a214b969 100644 --- a/image_test.go +++ b/image_test.go @@ -41,7 +41,7 @@ func skipTooSlowTests(t *testing.T) bool { } if runtime.GOOS == "js" { v := runtime.Version() - if m := regexp.MustCompile(`^go(\d+)\.(\d+)$`).FindStringSubmatch(v); m != nil { + if m := regexp.MustCompile(`^go(\d+)\.(\d+)`).FindStringSubmatch(v); m != nil { major, _ := strconv.Atoi(m[1]) minor, _ := strconv.Atoi(m[2])