diff --git a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js index 2e137381d6d..3191c1eb817 100644 --- a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js +++ b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js @@ -1796,6 +1796,7 @@ EditorClean.prototype = { // Use a regular expression to find the next open or close li, ul, or ol tag. // Keep going until there are no more matching tags left. + // This expression looks for whole words by employing the word boundary (\b) metacharacter. while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) { currentTag = { tag: match[2], diff --git a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js index 215a2b7fe8e..9efdd37a6ca 100644 --- a/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js +++ b/lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js @@ -1783,6 +1783,7 @@ EditorClean.prototype = { // Use a regular expression to find the next open or close li, ul, or ol tag. // Keep going until there are no more matching tags left. + // This expression looks for whole words by employing the word boundary (\b) metacharacter. while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) { currentTag = { tag: match[2], diff --git a/lib/editor/atto/yui/src/editor/js/clean.js b/lib/editor/atto/yui/src/editor/js/clean.js index 44f65e8fd1f..abdc3ac5dee 100644 --- a/lib/editor/atto/yui/src/editor/js/clean.js +++ b/lib/editor/atto/yui/src/editor/js/clean.js @@ -498,6 +498,7 @@ EditorClean.prototype = { // Use a regular expression to find the next open or close li, ul, or ol tag. // Keep going until there are no more matching tags left. + // This expression looks for whole words by employing the word boundary (\b) metacharacter. while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) { currentTag = { tag: match[2],