]> git.ardis.lu - 4-byte-gen/commitdiff
Trim whitespace in function inputs
authorArdis Lu <ardisglu@gmail.com>
Sun, 19 Mar 2023 05:04:29 +0000 (22:04 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 19 Mar 2023 05:04:29 +0000 (22:04 -0700)
index.html

index e40dbaf1274d2cba8cbc2cd9f83fc19650372606..ddb1cecc4e11c7cf289f5620e3284a897f526943 100644 (file)
       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);
This page took 0.042858 seconds and 4 git commands to generate.