docs: function getModifierAndComponents(range) {
    const rangeComponents = range.split(componentRegex);
    const matches = rangeComponents[0].match(modifierRegex);
    invariant(matches, 'expected regex to match but it did not');
  
    return {
      modifier: matches[1],
      rangeComponents: [matches[2]].concat(rangeComponents.slice(1)),
    };
  }