r90529 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90528‎ | r90529 | r90530 >
Date:15:01, 21 June 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r90528
Modified paths:
  • /trunk/extensions/LiveTranslate/includes/ext.lt.google.js (modified) (history)
  • /trunk/extensions/LiveTranslate/includes/ext.lt.ms.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiveTranslate/includes/ext.lt.google.js
@@ -139,7 +139,7 @@
140140
141141 self.runningJobs++;
142142 self.translateChunk(
143 - this.data.split( new RegExp( "(\\S.+?[.!?])(?=\\s+|$)", "gi" ) ),
 143+ this.data.split( new RegExp( "([.!?])(?=\\s+|$)", "gi" ) ), // "(\\S.+?[.!?])(?=\\s+|$)"
144144 [],
145145 maxChunkLength,
146146 sourceLang,
Index: trunk/extensions/LiveTranslate/includes/ext.lt.ms.js
@@ -156,7 +156,7 @@
157157 // }
158158
159159 self.translateChunk(
160 - this.data.split( new RegExp( "[.!?](?=\\s+|$)", "gi" ) ), // "(\\S.+?[.!?])(?=\\s+|$)"
 160+ this.data.split( new RegExp( "([.!?])(?=\\s+|$)", "gi" ) ), // "(\\S.+?[.!?])(?=\\s+|$)"
161161 [],
162162 maxChunkLength,
163163 sourceLang,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90528fixed IE breakagejeroendedauw14:48, 21 June 2011

Status & tagging log