Picodes / 4naly3er

Static smart contract code 4naly3er

Home Page:https://github.com/Picodes/4naly3er

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read file with 0 in the file name.

gsangeryee opened this issue · comments

The tool cannot read files with 0 in the file name. Such as contracts/lending/tokens/cErc20ModifiedDelegator.sol, contracts/lending/tokens/cToken/CErc20.sol

In the src/index.ts#L32

    for (const word of [...content.matchAll(/[a-zA-Z\/\.\-\_1-9]+/g)].map(r => r[0])) {

Suggestion:

    for (const word of [...content.matchAll(/[a-zA-Z\/\.\-\_0-9]+/g)].map(r => r[0])) {

Thanks for reporting!