File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -380,11 +380,11 @@ def dropSpans(spans, text):
380
380
# as well as U+3000 is IDEOGRAPHIC SPACE for bug 19052
381
381
EXT_LINK_URL_CLASS = r'[^][<>"\x00-\x20\x7F\s]'
382
382
ExtLinkBracketedRegex = re .compile (
383
- '\[((( ?i)' + '|' .join (wgUrlProtocols ) + ')' + EXT_LINK_URL_CLASS + r'+)\s*([^\]\x00-\x08\x0a-\x1F]*?)\]' ,
383
+ '( ?i)\[(( ' + '|' .join (wgUrlProtocols ) + ')' + EXT_LINK_URL_CLASS + r'+)\s*([^\]\x00-\x08\x0a-\x1F]*?)\]' ,
384
384
re .S | re .U )
385
385
EXT_IMAGE_REGEX = re .compile (
386
- r"""^(http://|https://)([^][<>"\x00-\x20\x7F\s]+)
387
- /([A-Za-z0-9_.,~%\-+&;#*?!=()@\x80-\xFF]+)\.((?i) gif|png|jpg|jpeg)$""" ,
386
+ r"""(?i) ^(http://|https://)([^][<>"\x00-\x20\x7F\s]+)
387
+ /([A-Za-z0-9_.,~%\-+&;#*?!=()@\x80-\xFF]+)\.(gif|png|jpg|jpeg)$""" ,
388
388
re .X | re .S | re .U )
389
389
390
390
You can’t perform that action at this time.
0 commit comments