You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// get normalized sloc (function heads normalized)
constnormalized=content.replace(
/function\s*\S+\s*\([^{]*/g,
'function ',
content
);
The regex looks for a beginning curly brace, which may not exist in an interface or an abstract contract's function declaration. This can be addressed with the following change, which looks for a semicolon in addition to the opening curly brace:
solidity-metrics/src/metrics/metrics.js
Lines 989 to 994 in 1bc713a
The regex looks for a beginning curly brace, which may not exist in an interface or an abstract contract's function declaration. This can be addressed with the following change, which looks for a semicolon in addition to the opening curly brace:
The text was updated successfully, but these errors were encountered: