function trimTrailingDots(value) {
  if (value[value.length - 1] === '.') {
    return value.substr(0, value.length - 1);
  }
  return value;
}
@see https://github.com/oncletom/tld.js/issues/95

@param {string} value