MDL-77365 count_words: Make span> an inline tag

This commit is contained in:
fcbsd 2023-03-06 10:59:44 +00:00
parent 556208417d
commit e2d138f250
2 changed files with 2 additions and 1 deletions

View File

@ -8391,7 +8391,7 @@ function count_words($string) {
</ # Start of close tag.
(?! # Do not match any of these specific close tag names.
a> | b> | del> | em> | i> |
ins> | s> | small> |
ins> | s> | small> | span> |
strong> | sub> | sup> | u>
)
\w+ # But, apart from those execptions, match any tag name.

View File

@ -4009,6 +4009,7 @@ EOF;
[2, "one\ftwo"],
[1, "SO<sub>4</sub><sup>2-</sup>"],
[6, '4+4=8 i.e. O(1) a,b,c,d Im black&blue_really'],
[1, '<span>a</span><span>b</span>'],
];
}