MDL-74492 editor_atto: <line> tags should not be confused with <li> tags

This commit is contained in:
Philipp Imhof
2022-08-04 10:04:59 +08:00
committed by Andrew Nicols
parent c4b3e06f8a
commit 4fecc12ea1
4 changed files with 4 additions and 4 deletions
@@ -1796,7 +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.
while ((match = toProcess.match(/<(\/?)(li|ul|ol)[^>]*>/i))) {
while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) {
currentTag = {
tag: match[2],
tagLowerCase: match[2].toLowerCase(),
File diff suppressed because one or more lines are too long
@@ -1783,7 +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.
while ((match = toProcess.match(/<(\/?)(li|ul|ol)[^>]*>/i))) {
while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) {
currentTag = {
tag: match[2],
tagLowerCase: match[2].toLowerCase(),
+1 -1
View File
@@ -498,7 +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.
while ((match = toProcess.match(/<(\/?)(li|ul|ol)[^>]*>/i))) {
while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) {
currentTag = {
tag: match[2],
tagLowerCase: match[2].toLowerCase(),