Incorrect detection of HTML tags
authorAlexander Ebert <ebert@woltlab.com>
Mon, 27 Sep 2021 15:00:48 +0000 (17:00 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 27 Sep 2021 15:00:48 +0000 (17:00 +0200)
commit355a15a6d0c1e7bfc0ee93cab96d10e7f560bfb8
tree999ff037443d3ceb1a157abd5f78587ee5198365
parent6eab41377a8b8937c1b70dbbc31fa784740abf4b
Incorrect detection of HTML tags

The previous regex was incorrect and caused false-positive matches. One such case was a `<td>The …</td>` which translated into `###td ###The …`, causing it to be recognized as a `<th>`.

The new regex is much more restrictive by requiring at least one whitespace after the tag name if there is additional content.
wcfsetup/install/files/js/3rdParty/redactor2/redactor.js