From 5e6440d7348eead7b3da0e8c8dd2ecc72a10f25e Mon Sep 17 00:00:00 2001 From: Saleh Khazaei Date: Wed, 26 Jun 2024 20:13:45 +0400 Subject: [PATCH] fix: Adds float for number validator --- view/page_preferences.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/page_preferences.go b/view/page_preferences.go index dbc6aec..1a7307e 100644 --- a/view/page_preferences.go +++ b/view/page_preferences.go @@ -269,7 +269,7 @@ func pinnedValidator(s string) error { } func numberValidator(s string) error { - n, err := strconv.ParseInt(s, 10, 64) + n, err := strconv.ParseFloat(s, 64) if err != nil { return err }