function findInGroup(name, group, config, parentType = null) {
  if (typeof group.members === 'string') {
    const pattern = patchRegex(group.members, config);
    const classRe = new RegExp(`^(${pattern})$`);
    if (classRe.test(name)) {
      const res = classRe.exec(name);
      let value = '';
      if (res && res.groups) {
        if (res.groups.value) {
          value = res.groups.value;
        }
        if (res.groups.negativeValue) {
          value = '-' + res.groups.negativeValue;
        }
      }
      return {
        group: parentType,
        ...group,
        value: value,
      };
    } else {
      return null;
    }
  } else {
    const innerGroup = group.members.find((v) => findInGroup(name, v, config, group.type));
    if (!innerGroup) {
      return null;
    } else {
      return findInGroup(name, innerGroup, config, group.type);
    }
  }
}
Find the group of a classname

@param {String} name Classname to be find using patterns (without modifiers)
@param {Array} group The group being tested
@param {Object} config Tailwind CSS config
@param {String} parentType The name of the parent group
@returns {Object} The infos