r70602 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70601‎ | r70602 | r70603 >
Date:22:19, 6 August 2010
Author:tparscal
Status:ok
Tags:
Comment:
Fixed invlaid escape sequence
Modified paths:
  • /branches/resourceloader/phase3/resources/mediawiki/legacy/mediawiki.legacy.wikibits.js (modified) (history)

Diff [purge]

Index: branches/resourceloader/phase3/resources/mediawiki/legacy/mediawiki.legacy.wikibits.js
@@ -228,9 +228,9 @@
229229 mw.legacy.clientPC.indexOf( 'konqueror' ) != -1
230230 )
231231 ) {
232 - return = 'ctrl-';
 232+ return 'ctrl-';
233233 } else if ( mw.legacy.is_ff2 ) {
234 - return = 'alt-shift-';
 234+ return 'alt-shift-';
235235 }
236236 return 'alt-';
237237 } )(),
@@ -754,7 +754,7 @@
755755 */
756756
757757 /* Functions */
758 -
 758+
759759 'changeText': function( el, newText ) {
760760 // Safari work around
761761 if ( el.innerText ) {
@@ -765,7 +765,7 @@
766766 },
767767 'escapeQuotes': function( text ) {
768768 var re = new RegExp( '\'', 'g' );
769 - text = text.replace( re, '\\'' );
 769+ text = text.replace( re, '\\\'' );
770770 re = new RegExp( '\\n', 'g' );
771771 text = text.replace( re, '\\n' );
772772 return escapeQuotesHTML( text );

Status & tagging log