Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
No issue - Use the new version format for AC version validation
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielluong authored and JohanLorenzo committed Dec 19, 2022
1 parent 2504e42 commit 3ca044c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ac-version-for-fenix-beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#

def validate_ac_version(v):
"""Validate that v is in the format of 63.0.2. Returns v or raises an exception."""
if not re.match(r"^\d+\.\d+\.\d+$", v):
"""Validate that v is in the format of 109.0b1. Returns v or raises an exception."""
if not re.match(r"^\d+\.0b\d+$", v):
raise Exception(f"Invalid AC version format {v}")
return v

Expand Down

0 comments on commit 3ca044c

Please sign in to comment.