naddison36 / sol2uml

Solidity contract visualisation tool
MIT License
1.12k stars 257 forks source link

Updating regex pattern for removing import statements #145

Closed arbitrary-echo closed 1 year ago

arbitrary-echo commented 1 year ago

The previous pattern did not work for multiline specific imports. For example:

import {
    ItemOne,
    ItemTwo,
    ItemThree
} from "./path/to/Contract.sol";

One contract that has many of these types of import statements is on Ethereum Mainnet, address: 0x00000000000001ad428e4906aE43D8F9852d0dD6

The changes made should still work for the existing import statements.

naddison36 commented 1 year ago

Nice. Thanks for the PR. I'll include in the next release

naddison36 commented 1 year ago

This has been released in v2.5.4