Skip to content

Commit

Permalink
Revert "Fix: accept any string"
Browse files Browse the repository at this point in the history
This reverts commit ad3993b.
  • Loading branch information
h-suzuki-isp committed Feb 5, 2024
1 parent ad3993b commit 8991902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2caret/verb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read(self,rel_path):
return fp.read()

def get_version(self,rel_path):
version_pattern = re.compile(r"\s*version\s*=\s*['\"](.*)['\"]")
version_pattern = re.compile(r"\s*version\s*=\s*['\"](\d+\.\d+\.\d+)['\"]")
for line in self.read(rel_path).splitlines():
match = version_pattern.search(line)
if match:
Expand Down

0 comments on commit 8991902

Please sign in to comment.