aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-01-20 14:05:42 +0100
committercjihrig <cjihrig@gmail.com>2017-01-20 09:52:39 -0500
commitc722b8d2784c8a9f99c810c0263e6833e480ec7b (patch)
tree0e2d8a238c082dc59b4b471aa47167d2289b1211 /docs/src
parent011e02e3e5bfde5aae662fbc72608fa98122682f (diff)
downloadlibuv-c722b8d2784c8a9f99c810c0263e6833e480ec7b.tar.gz
libuv-c722b8d2784c8a9f99c810c0263e6833e480ec7b.zip
doc: add repitition qualifier to version regexs
Currently the libuv version is reported as unknown on the website. This is because the UV_VERSION_MINOR is no longer a single digit and the regex is not getting a match for the minor number. This commit makes the version regexs capture multiple digit numbers. PR-URL: https://github.com/libuv/libuv/pull/1205 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/conf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/conf.py b/docs/src/conf.py
index b9eaa137..3f8689d2 100644
--- a/docs/src/conf.py
+++ b/docs/src/conf.py
@@ -21,11 +21,11 @@ def get_libuv_version():
with open('../../include/uv-version.h') as f:
data = f.read()
try:
- m = re.search(r"""^#define UV_VERSION_MAJOR (\d)$""", data, re.MULTILINE)
+ m = re.search(r"""^#define UV_VERSION_MAJOR (\d+)$""", data, re.MULTILINE)
major = int(m.group(1))
- m = re.search(r"""^#define UV_VERSION_MINOR (\d)$""", data, re.MULTILINE)
+ m = re.search(r"""^#define UV_VERSION_MINOR (\d+)$""", data, re.MULTILINE)
minor = int(m.group(1))
- m = re.search(r"""^#define UV_VERSION_PATCH (\d)$""", data, re.MULTILINE)
+ m = re.search(r"""^#define UV_VERSION_PATCH (\d+)$""", data, re.MULTILINE)
patch = int(m.group(1))
m = re.search(r"""^#define UV_VERSION_IS_RELEASE (\d)$""", data, re.MULTILINE)
is_release = int(m.group(1))