From 6869ecbb091d0e00b5ed85f046e466e4e0a0a04d Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Thu, 21 Apr 2016 13:22:01 +0200 Subject: [PATCH] Handling several digits in major and minor version --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 003f179..5a1c9e1 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -1503,7 +1503,7 @@ H5P.Coords = function (x, y, w, h) { * return false if the library parameter is invalid */ H5P.libraryFromString = function (library) { - var regExp = /(.+)\s(\d)+\.(\d)$/g; + var regExp = /(.+)\s(\d+)\.(\d+)$/g; var res = regExp.exec(library); if (res !== null) { return {