From 577c21cba888a7a1ed5f207d90f212be30161d52 Mon Sep 17 00:00:00 2001 From: Mahmood Heidari Date: Mon, 10 Jul 2023 10:58:26 +0330 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20docs:=20v1.3.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.rst | 3 +++ tests/phone_test.go | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6b1b5f6..b945f1e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,9 @@ CHANGELOG UNRELEASED ---------- +1.3.3 (2023-07-10) +------------------ + * 🐛 fix: fixed problem on Phone number rule + fixed bug on setDefaultOn function 1.3.2 (2023-05-02) diff --git a/tests/phone_test.go b/tests/phone_test.go index ce8f68b..9ee946d 100644 --- a/tests/phone_test.go +++ b/tests/phone_test.go @@ -50,6 +50,13 @@ func TestPhone(t *testing.T) { panic: false, expected: []string{"phone failed"}, }, + { + name: "fail-3", + validator: g.Validator(g.R().Phone().SpecificMessages(galidator.Messages{"phone": "phone failed"})), + in: "+989 10 015 4789", + panic: false, + expected: []string{"phone failed"}, + }, } for _, s := range scenarios {