From ca0f3f952a6a7aa6a8c49acac72b6dcd87fc8e39 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 4 Mar 2018 21:27:06 -0500 Subject: [PATCH] Fixed missing space for singular customary tons --- units.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units.js b/units.js index 4effd1e..35b23e7 100644 --- a/units.js +++ b/units.js @@ -140,7 +140,7 @@ function customaryMass(kg, singular=false) { return mass + (singular || mass == 1 ? " pound" : " pounds"); } else { let mass = round(lbs / 2000,1); - return mass + (singular || mass == 1 ? "ton" : " tons"); + return mass + (singular || mass == 1 ? " ton" : " tons"); } }