From 71f10d66162bc4522e012e925b92d9f683dcd8c1 Mon Sep 17 00:00:00 2001 From: Nicolas Burtey Date: Sat, 21 Oct 2023 12:05:59 +0100 Subject: [PATCH] fix: longitude --- components/account/business-map-update.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/account/business-map-update.tsx b/components/account/business-map-update.tsx index b06a228..372cb79 100644 --- a/components/account/business-map-update.tsx +++ b/components/account/business-map-update.tsx @@ -97,7 +97,7 @@ const BusinessMapUpdate: React.FC<{ name="longitude" required type="text" - pattern="^(-|\+)??(180(\.0+?)??|([0-8]??\d)(\.\d+?)??)$" + pattern="^[-+]?(180(\.0{1,6})?|((\d{1,2}|[0-9][0-9][0-9])?(\.\d{1,12})?))$" placeholder="Enter longitude" className={`mt-4 shadow appearance-none border rounded w-full py-2 px-3 text-gray-600 focus:outline-none focus:shadow-outline`} />