diff --git a/src/parser-os.js b/src/parser-os.js index 07177a2..f37adb8 100644 --- a/src/parser-os.js +++ b/src/parser-os.js @@ -50,7 +50,7 @@ export default [ { test: [/macintosh/i], describe(ua) { - const version = getFirstMatch(/mac os x (\d+([_\s]\d+)*)/i, ua).replace(/[_\s]/g, '.'); + const version = getFirstMatch(/mac os x (\d+(\.\d+)*)/i, ua).replace(/[_\s]/g, '.'); return { name: 'macOS', version