Skip to content

Commit d39ecae

Browse files
committed
Fixing version regex.
1 parent 6e222a1 commit d39ecae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
import re
5959
with open(os.path.join(path_dir, 'intercom', '__init__.py')) as init:
6060
source = init.read()
61-
m = re.search("__version__ = '(\d+\.\d+\.(\d+|[a-z]+))'", source, re.M)
61+
m = re.search("__version__ = '(\d+\.\d+(\.(\d+|[a-z]+))?)'", source, re.M)
6262
version = m.groups()[0]
6363

6464
# The full version, including alpha/beta/rc tags.

0 commit comments

Comments
 (0)