function timeRangeMask(value) {
  const numbers = value.replace(/[^0-9]/g, '');
  if (numbers.length > 4) {
    return [...timeMask(numbers.substring(0, 4)), '-', ...timeMask(numbers.substring(4))];
  }
  return [...timeMask(numbers)];
}
Generate a time range mask based on input value (00:00-23:59)
@param {string} value