Skip to content

Commit

Permalink
MDL-74492 editor_atto: Comment the regex change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Aug 4, 2022
1 parent ad58a4c commit cccef66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -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],
Expand Down
Expand Up @@ -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],
Expand Down
1 change: 1 addition & 0 deletions lib/editor/atto/yui/src/editor/js/clean.js
Expand Up @@ -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],
Expand Down

0 comments on commit cccef66

Please sign in to comment.