lib/autocomplete.js
function getSuffix(suffix) {
  suffix = (suffix.slice(0, 1) === ' ') ?
    suffix :
    suffix.replace(/.+?(?=\s)/, '');
  suffix = suffix.slice(1, suffix.length);
  return suffix;
}
function getSuffix(suffix) {
  suffix = (suffix.slice(0, 1) === ' ') ?
    suffix :
    suffix.replace(/.+?(?=\s)/, '');
  suffix = suffix.slice(1, suffix.length);
  return suffix;
}
function getSuffix ( suffix ) { suffix = ( suffix . slice ( 0 , 1 ) === ' ' ) ? suffix : suffix . replace ( / .+?(?=\s) / , '' ) ; suffix = suffix . slice ( 1 , suffix . length ) ; return suffix ; }
Returns a cleaned up version of the
remaining text to the right of the cursor.

@param {String} suffix
@return {String}
@api private
Returns a cleaned up version of the remaining text to the right of the cursor .