MDL-74492 editor_atto: Comment the regex change

This commit is contained in:
Andrew Nicols
2022-08-04 10:05:21 +08:00
parent ad58a4c3c3
commit cccef66f0c
3 changed files with 3 additions and 0 deletions
@@ -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],
@@ -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],
+1
View File
@@ -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],