Skip to content

Commit

Permalink
improve regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed May 13, 2019
1 parent c9b6cba commit b0abec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brownie/project/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _get_contract_data(self, path):
)
for source in contracts:
type_, name, inherited = re.findall(
r"\s*(contract|library|interface) (\S*) (?:is (.*?)|)(?: *{)",
r"\s*(contract|library|interface)\s{1,}(\S*)\s*(?:is\s{1,}(.*?)|)(?:{)",
source
)[0]
inherited = set(i.strip() for i in inherited.split(', ') if i)
Expand Down

0 comments on commit b0abec8

Please sign in to comment.