1
0
Fork 0

Merge branch 'develop' of github.com:freesewing/freesewing into develop

This commit is contained in:
Joost De Cock 2022-06-21 19:24:26 +02:00
commit 5af0bedfec
108 changed files with 2533 additions and 59 deletions

View file

@ -1,6 +1,10 @@
const measurementAsMm = (value, units = "metric") => {
if (typeof value === "number")
return value * (units === "imperial" ? 25.4 : 10);
if (value.endsWith('.'))
return false;
if (units === "metric") {
value = Number(value);
if (isNaN(value)) return false;