Skip to content

Commit

Permalink
Fix: Java Version in swagger regex (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself authored Aug 21, 2023
1 parent 07b01d7 commit 1cc1e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pontos/version/commands/_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _update_swagger_config(
return
pattern = (
r'\.version\("([0-9]+\.[0-9]+\.[0-9]+'
r'(-?([ab]|dev|rc|alpha|beta)[0-9]+)?"\)'
r'(-?([ab]|dev|rc|alpha|beta)[0-9]+)?)"\)'
)
replace_string_in_file(
swagger_config_file, pattern=pattern, replacement=str(new_version)
Expand Down

0 comments on commit 1cc1e3a

Please sign in to comment.