diff --git a/lib/woothee/os.py b/lib/woothee/os.py index 0e382e0..cf5c130 100644 --- a/lib/woothee/os.py +++ b/lib/woothee/os.py @@ -129,6 +129,10 @@ def challenge_smartphone(ua, result): data = dataset.get('iPod') elif 'Android' in ua: data = dataset.get('Android') + regex = re.compile(r"Android[- ](\d+(?:\.\d+(?:\.\d+)?)?)") + m = regex.search(ua) + if m: + os_version = m.group(1) elif 'CFNetwork' in ua: data = dataset.get('iOS') elif 'BB10' in ua: diff --git a/woothee b/woothee index 7ea09a7..998c6ec 160000 --- a/woothee +++ b/woothee @@ -1 +1 @@ -Subproject commit 7ea09a7bd37572119174832881e0c2506cb41791 +Subproject commit 998c6ecd1c6b0df770210ba18ca55ee3600e5b80