diff --git a/.changeset/big-zoos-repair.md b/.changeset/big-zoos-repair.md new file mode 100644 index 00000000..44b6588e --- /dev/null +++ b/.changeset/big-zoos-repair.md @@ -0,0 +1,5 @@ +--- +"@razorpay/i18nify-js": patch +--- + +[fix]: singapore validation regex fixed diff --git a/packages/i18nify-js/src/modules/phoneNumber/data/phoneRegexMapper.json b/packages/i18nify-js/src/modules/phoneNumber/data/phoneRegexMapper.json index b3287e88..55b7ad93 100644 --- a/packages/i18nify-js/src/modules/phoneNumber/data/phoneRegexMapper.json +++ b/packages/i18nify-js/src/modules/phoneNumber/data/phoneRegexMapper.json @@ -199,7 +199,7 @@ "RS": "^(?:(?:\\+381)|0)([0-6]|[7][012345])[0-9]{5,10}$", "SC": "^(?:(?:\\+248)|\\d{4})\\d{5}$", "SL": "^(?:(?:\\+232)|(?:0))?\\d{9}$", - "SG": "^(?:(?:\\+65)|(?:\\(\\+65\\))|(?:65))\\d{4}\\d{4}$", + "SG": "^(?:(?:\\+65)|(?:\\(\\+65\\))|(?:65))?\\d{4}\\d{4}$", "SX": "^(?:\\+1-721)?\\d{7}$", "SK": "^(?:(?:\\+421))?(0|9[0-8])\\d{8}$", "SI": "^(?:(?:\\+386)|0)?[1-59]\\d{7,8}$",