Merge branch 'develop' of github.com:freesewing/freesewing into develop
This commit is contained in:
commit
5af0bedfec
108 changed files with 2533 additions and 59 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue