dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit ddef49477ea78e3c2b87ed763ee4d871cad28ece
parent 5b736808e5cd0ea9a3f5088d5296a242ab9ceee9
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 15 Dec 2023 02:42:10 -0500

fix regex

Diffstat:
Mpkg/web/handlers/handlers.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -825,7 +825,7 @@ func PokerHomeHandler(c echo.Context) error { data.Error = "invalid xmr address" return c.Render(http.StatusOK, "poker", data) } - if !govalidator.Matches(data.WithdrawAddress, `^[478][0-9AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{93}$`) { + if !govalidator.Matches(data.WithdrawAddress, `^[0-9][0-9AB][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{93}$`) { data.Error = "invalid xmr address" return c.Render(http.StatusOK, "poker", data) }