Index: trunk/parsers/wikidom/lib/es/es.TextFlow.js |
— | — | @@ -217,7 +217,7 @@ |
218 | 218 | } |
219 | 219 | // If the last character is not a boundary character, we need to append the final range to the |
220 | 220 | // "boundaries" and "words" arrays |
221 | | - if ( end < text.length ) { |
| 221 | + if ( end < text.length || this.boundaries.length === 1 ) { |
222 | 222 | this.boundaries.push( text.length ); |
223 | 223 | } |
224 | 224 | }; |