From: Ardis Lu Date: Sun, 19 Mar 2023 05:04:29 +0000 (-0700) Subject: Trim whitespace in function inputs X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=1a0c8caebe77915ab286282ff05ed95d09cc6d2d;p=4-byte-gen Trim whitespace in function inputs --- 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);