This is giving me a syntax error. It looks gross this way, but I can't think of any...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Tue, 20 Nov 2007 19:40:48 +0000 (19:40 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Tue, 20 Nov 2007 19:40:48 +0000 (19:40 +0000)
includes/Parser.php

index 97ccd96..87e1a7d 100644 (file)
@@ -58,8 +58,7 @@ class Parser
        # Constants needed for external link processing
        # Everything except bracket, space, or control characters
        const EXT_LINK_URL_CLASS = '[^][<>"\\x00-\\x20\\x7F]';
-       const EXT_IMAGE_REGEX = '/^(http:\/\/|https:\/\/)([^][<>"\\x00-\\x20\\x7F]+)\
-               \\/([A-Za-z0-9_.,~%\\-+&;#*?!=()@\\x80-\\xFF]+)\\.((?i)gif|png|jpg|jpeg)$/S';
+       const EXT_IMAGE_REGEX = '/^(http:\/\/|https:\/\/)([^][<>"\\x00-\\x20\\x7F]+)\\/([A-Za-z0-9_.,~%\\-+&;#*?!=()@\\x80-\\xFF]+)\\.((?i)gif|png|jpg|jpeg)$/S';
 
        // State constants for the definition list colon extraction
        const COLON_STATE_TEXT = 0;