We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ed0c21 commit 698b37cCopy full SHA for 698b37c
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "circuitscan",
3
- "version": "0.1.11",
+ "version": "0.1.12",
4
"main": "cli.js",
5
"type": "module",
6
"author": "numtel <ben@latenightsketches.com>",
src/solidity.js
@@ -199,7 +199,7 @@ export function compileContract(source) {
199
}
200
201
function findContractName(soliditySource, returnAll) {
202
- const regex = /contract\s+([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:is\s+[a-zA-Z_][a-zA-Z0-9_,\s]*)?\s*\{/g;
+ const regex = /contract\s+([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:is\s+[a-zA-Z_][a-zA-Z0-9_]*(?:\([^)]*\))?(?:\s*,\s*[a-zA-Z_][a-zA-Z0-9_]*(?:\([^)]*\))?)*)?\s*\{/g;
203
const matches = [];
204
205
for (const match of soliditySource.matchAll(regex)) {
0 commit comments