]> git.ardis.lu - 4-byte-gen/commitdiff
Add additional characters to clean
authorArdis Lu <ardisglu@gmail.com>
Sun, 19 Mar 2023 22:15:20 +0000 (15:15 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 19 Mar 2023 22:15:20 +0000 (15:15 -0700)
index.html

index d0effcae8cf33ecf33ba79b5aa1acf09ad4de711..71c54b5209fc574920346cf00a5895149c366ed5 100644 (file)
@@ -60,7 +60,7 @@
     // Normalize and extract the function name and parameter types
     function splitFunction(fn) {
       // Clean all characters that definitely do not affect the signature
-      fn = fn.replaceAll(';', ''); // TODO: any others?
+      fn = fn.replaceAll(/[;'"]/g, '');
 
       // Extract the function name and parameters
       // Original regex is from wagmi-dev/abitype
This page took 0.034977 seconds and 4 git commands to generate.