diff --git a/scripts/mark-the-words.js b/scripts/mark-the-words.js index b141727..90be266 100644 --- a/scripts/mark-the-words.js +++ b/scripts/mark-the-words.js @@ -93,7 +93,7 @@ H5P.MarkTheWords = (function ($, Question, Word, KeyboardNav, XapiGenerator) { if (node instanceof Text) { var text = $(node).text(); var selectableStrings = text.replace(/( |\r\n|\n|\r)/g, ' ') - .match(/ \*[^\*]+\* |[^\s]+/g); + .match(/ \*[^\* ]+\* |[^\s]+/g); if (selectableStrings) { selectableStrings.forEach(function (entry) {