Handling several digits in major and minor version
parent
414751aad2
commit
6869ecbb09
|
@ -1503,7 +1503,7 @@ H5P.Coords = function (x, y, w, h) {
|
||||||
* return false if the library parameter is invalid
|
* return false if the library parameter is invalid
|
||||||
*/
|
*/
|
||||||
H5P.libraryFromString = function (library) {
|
H5P.libraryFromString = function (library) {
|
||||||
var regExp = /(.+)\s(\d)+\.(\d)$/g;
|
var regExp = /(.+)\s(\d+)\.(\d+)$/g;
|
||||||
var res = regExp.exec(library);
|
var res = regExp.exec(library);
|
||||||
if (res !== null) {
|
if (res !== null) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue