mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Minor fix
This commit is contained in:
parent
807d9530ac
commit
c03e5fbc49
|
@ -827,7 +827,8 @@ es.DocumentModel.prototype.getWordBoundaries = function( offset ) {
|
|||
return null;
|
||||
}
|
||||
|
||||
var regex = this.data[offset].match( /\B/ ) ? /\b/ : /\B/,
|
||||
var offsetItem = typeof this.data[offset] === 'string' ? this.data[offset] : this.data[offset][0],
|
||||
regex = offsetItem.match( /\B/ ) ? /\b/ : /\B/,
|
||||
start = offset,
|
||||
end = offset,
|
||||
item;
|
||||
|
|
Loading…
Reference in a new issue