From 707fe29c398a0bac6687dccafb0c23f39fd478b8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 18 Feb 2011 14:18:26 +0000 Subject: [PATCH] Fix comments and whitespace for \\\\ . --- includes/libs/JavaScriptDistiller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/libs/JavaScriptDistiller.php b/includes/libs/JavaScriptDistiller.php index 123d802951..1027433ba0 100644 --- a/includes/libs/JavaScriptDistiller.php +++ b/includes/libs/JavaScriptDistiller.php @@ -98,7 +98,7 @@ class JavaScriptDistiller { '\'' . // start quote '[^\'\\\\]*' . // a run of non-special characters '(?:' . - '\\\\ .' . // a backslash followed by a character or line ending + '\\\\ .' . // a backslash followed by any character '[^\'\\\\]*' . // a run of non-special characters ')*' . // any number of the above '\'', // end quote @@ -115,7 +115,7 @@ class JavaScriptDistiller { '[^\r\n\*]' . // not a comment-start or line ending '[^\/\r\n\\\\]*' . // a sequence of non-special characters '(?:' . - '\\\\.' . // an escaped dot + '\\\\ .' . // a backslash followed by any character '[^\/\r\n\\\\]*' . // a sequence of non-special characters ')*' . // any number of the above '\/[ig]*' , // pattern end, optional modifier -- 2.20.1