Skip to content

Commit

Permalink
MAINT: PR 18072 revisions
Browse files Browse the repository at this point in the history
* `name_match` regular expression now starts by
matching a letter only, based on reviewer
feedback
  • Loading branch information
tylerjereddy authored and charris committed Feb 7, 2021
1 parent 6750eca commit c181a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/f2py/crackfortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -2605,7 +2605,7 @@ def analyzevars(block):
params = get_parameters(vars, get_useparameters(block))

dep_matches = {}
name_match = re.compile(r'\w[\w$]*').match
name_match = re.compile(r'[A-Za-z][\w$]*').match
for v in list(vars.keys()):
m = name_match(v)
if m:
Expand Down

0 comments on commit c181a40

Please sign in to comment.