diff --git a/config/changelog.yaml b/config/changelog.yaml index 9651df27a44..6925cf2b78d 100644 --- a/config/changelog.yaml +++ b/config/changelog.yaml @@ -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: diff --git a/packages/core/src/utils.js b/packages/core/src/utils.js index f62da21e95d..6081a1375e1 100644 --- a/packages/core/src/utils.js +++ b/packages/core/src/utils.js @@ -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' }