From 1a0c8caebe77915ab286282ff05ed95d09cc6d2d Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 18 Mar 2023 22:04:29 -0700 Subject: [PATCH] Trim whitespace in function inputs --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index e40dbaf..ddb1cec 100644 --- a/index.html +++ b/index.html @@ -118,7 +118,8 @@ const fns = data.get('functions').split('\n'); const minimum = parseInt(data.get('minimum')); - for (const fn of fns) { + for (let fn of fns) { + fn = fn.trim(); const { name, parametersTypes } = splitFunction(fn); const { functionName, hash } = calculateOptimizedName(name, parametersTypes, minimum); console.log(functionName, hash); -- 2.47.3