From a703f2f59f90a97a9dec6e48de38374a5c12640e Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Tue, 20 Nov 2007 19:40:48 +0000 Subject: [PATCH] This is giving me a syntax error. It looks gross this way, but I can't think of any other way to split up the constant string. --- includes/Parser.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 97ccd969e9..87e1a7db11 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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; -- 2.20.1