fix: update_electron_gyp regex for nightlies

This commit is contained in:
Shelley Vohr 2018-08-17 14:35:58 -07:00
parent 73f2a7dda9
commit bdc65f2823
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -116,7 +116,7 @@ def increase_version(versions, index):
def update_electron_gyp(version, suffix): def update_electron_gyp(version, suffix):
pattern = re.compile(" *'version%' *: *'[0-9.]+(-beta[0-9.]*)?(-dev)?" pattern = re.compile(" *'version%' *: *'[0-9.]+(-beta[0-9.]*)?(-dev)?"
+ "(-nightly[0-9]*)?'") + "(-nightly[0-9.]*)?'")
with open('electron.gyp', 'r') as f: with open('electron.gyp', 'r') as f:
lines = f.readlines() lines = f.readlines()