Index: trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js |
— | — | @@ -827,7 +827,8 @@ |
828 | 828 | return null; |
829 | 829 | } |
830 | 830 | |
831 | | - var regex = this.data[offset].match( /\B/ ) ? /\b/ : /\B/, |
| 831 | + var offsetItem = typeof this.data[offset] === 'string' ? this.data[offset] : this.data[offset][0], |
| 832 | + regex = offsetItem.match( /\B/ ) ? /\b/ : /\B/, |
832 | 833 | start = offset, |
833 | 834 | end = offset, |
834 | 835 | item; |