Skip to content

Commit 6e222a1

Browse files
committed
Updating version regex.
1 parent 34495fc commit 6e222a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
with open(os.path.join('intercom', '__init__.py')) as init:
1414
source = init.read()
15-
m = re.search("__version__ = '(\d+\.\d+\.(\d+|[a-z]+))'", source, re.M)
15+
m = re.search("__version__ = '(\d+\.\d+(\.(\d+|[a-z]+))?)'", source, re.M)
1616
__version__ = m.groups()[0]
1717

1818
with open('README.rst') as readme:

0 commit comments

Comments
 (0)