Util.js
function hasDotNesting(string) {
  const loc = string.indexOf('.');
  return (loc !== -1) && (loc !== 0) && (loc !== string.length - 1);
}
function hasDotNesting(string) {
  const loc = string.indexOf('.');
  return (loc !== -1) && (loc !== 0) && (loc !== string.length - 1);
}
function hasDotNesting ( string ) { const loc = string . indexOf ( '.' ) ; return ( loc !== - 1 ) && ( loc !== 0 ) && ( loc !== string . length - 1 ) ; }
Returns true if string a dot in it at any position other than the first and last ones.
Returns true if string a dot in it at any position other than the first and last ones .