Fix comments and whitespace for \\\\ .
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 18 Feb 2011 14:18:26 +0000 (14:18 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 18 Feb 2011 14:18:26 +0000 (14:18 +0000)
includes/libs/JavaScriptDistiller.php

index 123d802..1027433 100644 (file)
@@ -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