Skip to content

Commit

Permalink
prefix each line with r for multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmejia committed Jul 3, 2024
1 parent 07d3759 commit 37b01b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

version_re = re.compile(
r"^([1-9][0-9]*!)?(0|[1-9][0-9]*)"
"(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))"
"?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$"
r"(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))"
r"?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$"
)
if not version_re.match(version_string):
# Generate version based on the datetime.now(): e.g., 2023.5.17.dev1684352560.
Expand Down

0 comments on commit 37b01b7

Please sign in to comment.