Skip to content

MAINT: crackfortran regex simplify#18356

Merged
charris merged 2 commits intonumpy:maintenance/1.20.xfrom
charris:backport-18072
Feb 7, 2021
Merged

MAINT: crackfortran regex simplify#18356
charris merged 2 commits intonumpy:maintenance/1.20.xfrom
charris:backport-18072

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Feb 7, 2021

Backport of #18072.

  • remove extraneous character class markers used in
    crackline_re_1: \w and = on their own have no
    benefit to character class [] inclusion

  • name_match has a character class that can be
    simplified because \w metacharacter already
    encompasses the digit metacharacter and the
    underscore

* remove extraneous character class markers used in
`crackline_re_1`: `\w` and `=` on their own have no
benefit to character class `[]` inclusion

* `name_match` has a character class that can be
simplified because `\w` metacharacter already
encompasses the digit metacharacter and the
underscore
* `name_match` regular expression now starts by
matching a letter only, based on reviewer
feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants