Index: trunk/extensions/LiveTranslate/includes/ext.lt.google.js |
— | — | @@ -139,7 +139,7 @@ |
140 | 140 | |
141 | 141 | self.runningJobs++; |
142 | 142 | self.translateChunk( |
143 | | - this.data.split( new RegExp( "(\\S.+?[.!?])(?=\\s+|$)", "gi" ) ), |
| 143 | + this.data.split( new RegExp( "([.!?])(?=\\s+|$)", "gi" ) ), // "(\\S.+?[.!?])(?=\\s+|$)" |
144 | 144 | [], |
145 | 145 | maxChunkLength, |
146 | 146 | sourceLang, |
Index: trunk/extensions/LiveTranslate/includes/ext.lt.ms.js |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | // } |
158 | 158 | |
159 | 159 | self.translateChunk( |
160 | | - this.data.split( new RegExp( "[.!?](?=\\s+|$)", "gi" ) ), // "(\\S.+?[.!?])(?=\\s+|$)" |
| 160 | + this.data.split( new RegExp( "([.!?])(?=\\s+|$)", "gi" ) ), // "(\\S.+?[.!?])(?=\\s+|$)" |
161 | 161 | [], |
162 | 162 | maxChunkLength, |
163 | 163 | sourceLang, |