diff --git a/src/Main.tsx b/src/Main.tsx index e979cd5..dcce26d 100644 --- a/src/Main.tsx +++ b/src/Main.tsx @@ -369,7 +369,7 @@ function CreateComponent() { const loadTextArea = () => { if (!drawRef.current || !mapRef.current) return; - const isBbox = /^(\d+(\.\d+)?,){3}\d+(\.\d+)?$/; + const isBbox = /^(-?\d+(\.\d+)?,){3}-?\d+(\.\d+)?$/; if (isBbox.test(textAreaValue)) { const arr = textAreaValue.split(","); const minX = +arr[0];