Skip to content

Commit 5e47f3e

Browse files
oscarlevinCopilot
andauthored
Update pretext/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9daf624 commit 5e47f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pretext/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def requirements_version(dirpath: Optional[Path] = None) -> Optional[str]:
134134
return None
135135
try:
136136
with open(pp / "requirements.txt", "r") as f:
137-
REGEX = r"\s*pretext(book)?(\[.*\])?\s*==\s*(?P<version>[\d\.]*)\s*"gm
137+
REGEX = r"\s*pretext(book)?(\[.*\])?\s*==\s*(?P<version>[\d\.]+)\s*"gm
138138
for line in f.readlines():
139139
match = re.match(REGEX, line)
140140
if match:

0 commit comments

Comments
 (0)