From: Daniel Cannon Date: Tue, 20 Nov 2007 19:40:48 +0000 (+0000) Subject: This is giving me a syntax error. It looks gross this way, but I can't think of any... X-Git-Tag: 1.31.0-rc.0~50773 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=a703f2f59f90a97a9dec6e48de38374a5c12640e;p=lhc%2Fweb%2Fwiklou.git 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. --- 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;