You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the re module supports only simple set syntax. But it is possible that in future it will support extended syntax: nested sets and set operations. Unfortunately that syntax is not fully compatible with the current syntax. In particular open bracket '[' in a character set starts a nested set. The code of html5lib contains a regular expression that will be broken if the new syntax will be accepted.
It would be good to guard the code from possible future breakage. It is enough to add a backslash before [. Replace \u005B with \u005C\u005B, \\\u005B or \\[.
Currently the
re
module supports only simple set syntax. But it is possible that in future it will support extended syntax: nested sets and set operations. Unfortunately that syntax is not fully compatible with the current syntax. In particular open bracket'['
in a character set starts a nested set. The code of html5lib contains a regular expression that will be broken if the new syntax will be accepted.It would be good to guard the code from possible future breakage. It is enough to add a backslash before
[
. Replace\u005B
with\u005C\u005B
,\\\u005B
or\\[
.See Python issue: https://bugs.python.org/issue30349.
The text was updated successfully, but these errors were encountered: