src/editor.js
function matchLength(text, exp) {
  const match = text.match(exp);
  return match ? match[0].length : 0;
}
function matchLength(text, exp) {
  const match = text.match(exp);
  return match ? match[0].length : 0;
}
function matchLength ( text , exp ) { const match = text . match ( exp ) ; return match ? match [ 0 ] . length : 0 ; }
Get length of match.
@private
Get length of match .