1
0
Fork 0

fix(core): Properly escape quotes in units. Fixes #437

This commit is contained in:
Joost De Cock 2020-07-12 15:10:18 +02:00
parent 2f547ecca0
commit d2bf45e63c
2 changed files with 3 additions and 1 deletions

View file

@ -170,6 +170,8 @@ Unreleased:
- Fixed panels option being a list of numbers rather than strings
components:
- Fixed bug that broke millimeter sliders
core:
- '[Properly escape quotes in imperial units](https://github.com/freesewing/freesewing/issues/437)'
huey:
- '[Added seam allowance to the front closure](https://github.com/freesewing/freesewing/issues/420)'
Removed:

View file

@ -126,7 +126,7 @@ export function beamIntersectsY(from, to, y) {
/** Convert value in mm to cm or imperial units */
export function units(value, to = 'metric') {
if (to === 'imperial') return round(value / 25.4) + '"'
if (to === 'imperial') return round(value / 25.4) + '"'
else return round(value / 10) + 'cm'
}