From cccef66f0cab7113ccefa4b5418ba142fa9fc91b Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 4 Aug 2022 10:04:12 +0800 Subject: [PATCH] MDL-74492 editor_atto: Comment the regex change --- .../moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js | 1 + .../build/moodle-editor_atto-editor/moodle-editor_atto-editor.js | 1 + lib/editor/atto/yui/src/editor/js/clean.js | 1 + 3 files changed, 3 insertions(+) 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],