@clappr/core
Advanced tools
Comparing version 0.4.10 to 0.4.11
{ | ||
"name": "@clappr/core", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"description": "Core components of the extensible media player for the web", | ||
@@ -5,0 +5,0 @@ "main": "./dist/clappr-core.js", |
@@ -1,7 +0,7 @@ | ||
const VERSION_REGEX = /(?<major>\d+)(\.(?<minor>\d+)?(\.(?<patch>\d+))?)?/ | ||
const VERSION_REGEX = /(\d+)(?:\.(\d+))?(?:\.(\d+))?/ | ||
export default class Version { | ||
static parse(str = '') { | ||
const { groups } = str.match(VERSION_REGEX) || {} | ||
const { major, minor, patch } = groups || {} | ||
const matches = str.match(VERSION_REGEX) || [] | ||
const [,major, minor, patch] = matches | ||
if (typeof(major) === 'undefined') return null | ||
@@ -8,0 +8,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2874465
24102