HFP-1905 Fix for LibraryNames with many elements

pull/52/head
Oliver Tacke 2018-06-28 18:36:58 +02:00
parent 14bcb913b7
commit e241ec6963
1 changed files with 1 additions and 1 deletions

View File

@ -1126,7 +1126,7 @@ H5P.buildMetadataCopyrights = function (metadata, contentTypeName) {
contentTypeName = contentTypeName
.split(' ')[0]
.replace(/^H5P\./, '')
.replace(/([a-z])([A-Z])/, '$1' + ' ' + '$2');
.replace(/([a-z])([A-Z])/g, '$1' + ' ' + '$2');
}
return new H5P.MediaCopyright(