r82400 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82399‎ | r82400 | r82401 >
Date:14:18, 18 February 2011
Author:tstarling
Status:ok
Tags:
Comment:
Fix comments and whitespace for \\\\ .
Modified paths:
  • /trunk/phase3/includes/libs/JavaScriptDistiller.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/libs/JavaScriptDistiller.php
@@ -98,7 +98,7 @@
9999 '\'' . // start quote
100100 '[^\'\\\\]*' . // a run of non-special characters
101101 '(?:' .
102 - '\\\\ .' . // a backslash followed by a character or line ending
 102+ '\\\\ .' . // a backslash followed by any character
103103 '[^\'\\\\]*' . // a run of non-special characters
104104 ')*' . // any number of the above
105105 '\'', // end quote
@@ -115,7 +115,7 @@
116116 '[^\r\n\*]' . // not a comment-start or line ending
117117 '[^\/\r\n\\\\]*' . // a sequence of non-special characters
118118 '(?:' .
119 - '\\\\.' . // an escaped dot
 119+ '\\\\ .' . // a backslash followed by any character
120120 '[^\/\r\n\\\\]*' . // a sequence of non-special characters
121121 ')*' . // any number of the above
122122 '\/[ig]*' , // pattern end, optional modifier

Status & tagging log