src/editor.js
function suffixLength(text, suffix) {
  let exp = new RegExp(`${suffix.pattern}$`);
  return matchLength(text, exp);
}
function suffixLength(text, suffix) {
  let exp = new RegExp(`${suffix.pattern}$`);
  return matchLength(text, exp);
}
function suffixLength ( text , suffix ) { let exp = new RegExp ( ` ${ suffix . pattern } ` ) ; return matchLength ( text , exp ) ; }
Get suffix length.
@private
Get suffix length .