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 {