www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit 193df467957cbc312ff3b7a6c73f2036a268a00c
parent 572fa60a9dce5ec53404ffaf24f68fe670887513
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Mon, 14 Oct 2024 22:15:36 -0700

Support user agents that use fancy quotes

Now typographical quotes are treated like dumb quotes for the
purposes of inches and feet.

Diffstat:
Mfiles/floorplans/floorplan/main.js | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -1243,7 +1243,14 @@ function unitInput(editor, input, value) { function parseUserLength(editor, length) { - let a = length.replaceAll(" ", "").split(/([0-9.]+)/) + let a = length + .replaceAll(" ", "") + .replaceAll("‘", "'") + .replaceAll("’", "'") + .replaceAll("“", '"') + .replaceAll("”", '"') + .split(/([0-9.]+)/) + let amount let rebuilt = [] for (let i in a) {