r102728 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102727‎ | r102728 | r102729 >
Date:00:28, 11 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Minor fix
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js
@@ -827,7 +827,8 @@
828828 return null;
829829 }
830830
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/,
832833 start = offset,
833834 end = offset,
834835 item;

Status & tagging log