From 9f3807eb8a330026008b7de70bff437b023369f0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 29 Jun 2019 21:43:14 +0100 Subject: [PATCH] Fix encoding --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 6e7ff29..5f23f5a 100644 --- a/index.ts +++ b/index.ts @@ -101,8 +101,8 @@ function humanize(value: number) { const value = parseFloat(i.toFixed(2)); const context = { ...baseContext, - displayValue: "£" + humanize(value), - value: humanize(value) + displayValue: '£' + humanize(value), + value: humanize(value), }; writeTemplate(template, value.toString(), context); if (isPrecision(value, 1)) {