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 f9825f4a502..59d7cb732b4 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 @@ -1793,6 +1793,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 78d8ceca8f7..d63532297a3 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 @@ -1780,6 +1780,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],