Skip to content

Commit

Permalink
Allow dash in rule names (#503)
Browse files Browse the repository at this point in the history
Since rules are dynamically imported, they don't actually have to adhere to identifier naming.

This allows putting rules in directories with `-` in them.
  • Loading branch information
zsol authored Jan 21, 2025
1 parent 8430224 commit f053db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fixit/ftypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ class Valid:
^
(?P<module>
(?P<local>\.)?
[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*
[a-zA-Z0-9_]+(\.[a-zA-Z0-9_-]+)*
)
(?::(?P<name>[a-zA-Z0-9_]+))?
(?::(?P<name>[a-zA-Z0-9_-]+))?
$
""",
re.VERBOSE,
Expand Down

0 comments on commit f053db2

Please sign in to comment.