Skip to content

Commit 805a0ef

Browse files
Added ability to use -pre versions
1 parent f191f07 commit 805a0ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/buildAndDeploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def setVersion(self, version: str) -> None:
247247

248248
data = sl_go.read_text()
249249

250-
old_v = re.search(r'^\W+PLUGIN_VERSION\W+= \"([0-9]+\.[0-9]+\.[0-9]+)\"', data, re.M)
250+
old_v = re.search(r'^\W+PLUGIN_VERSION\W+= \"([0-9]+\.[0-9]+\.[0-9]+(-[a-z]+)?)\"', data, re.M)
251251
if old_v is None:
252252
raise Exception(f"[red]Can't find old version!")
253253
print(f"[turquoise2]Old Version: {old_v[1]}")

0 commit comments

Comments
 (0)