From 942a67f569a017cd35811bed6095a136cccd5a86 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 10 Feb 2024 17:28:38 -0800 Subject: [PATCH] Parse events with space between name and parenthesis E.g. "event Example (address,address,uint);" --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2707025..e52a15b 100644 --- a/index.html +++ b/index.html @@ -229,8 +229,8 @@ // Split the event name and the event topics const eventRegex = strict ? - /^(event )(?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)(?!.+\))/ : - /^(event )?(?[a-zA-Z$_][a-zA-Z0-9$_]*)\((?.*?)(?!.+\))/; + /^(event )(?[a-zA-Z$_][a-zA-Z0-9$_]*) *\((?.*?)(?!.+\))/ : + /^(event )?(?[a-zA-Z$_][a-zA-Z0-9$_]*) *\((?.*?)(?!.+\))/; const { name, topics } = eventRegex.exec(event).groups; // Drop parameter names and extraneous whitespace, if there are any. Preserves tuple parentheses. -- 2.47.3