html-react-parser 5.0.4 → 5.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -613,7 +613,7 @@ npx size-limit
613
613
 
614
614
  This project exists thanks to all the people who contribute. [[Contribute](https://github.com/remarkablemark/html-react-parser/blob/master/.github/CONTRIBUTING.md)].
615
615
 
616
- [![Code Contributors](https://opencollective.com/html-react-parser/contributors.svg?width=890&button=false)](https://github.com/remarkablemark/html-react-parser/graphs/contributors)
616
+ [![Code Contributors](https://contrib.rocks/image?repo=remarkablemark/html-react-parser)](https://github.com/remarkablemark/html-react-parser/graphs/contributors)
617
617
 
618
618
  ### Financial Contributors
619
619
 
@@ -2485,7 +2485,7 @@
2485
2485
  * @returns - Whether the tag is custom component.
2486
2486
  */
2487
2487
  function isCustomComponent(tagName, props) {
2488
- if (tagName.indexOf('-') === -1) {
2488
+ if (!tagName.includes('-')) {
2489
2489
  return Boolean(props && typeof props.is === 'string');
2490
2490
  }
2491
2491
  // These are reserved SVG and MathML elements.
@@ -2597,8 +2597,8 @@
2597
2597
  if (propName) {
2598
2598
  var propertyInfo = (0, react_property_1.getPropertyInfo)(propName);
2599
2599
  // convert attribute to uncontrolled component prop (e.g., `value` to `defaultValue`)
2600
- if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 &&
2601
- UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 &&
2600
+ if (UNCONTROLLED_COMPONENT_ATTRIBUTES.includes(propName) &&
2601
+ UNCONTROLLED_COMPONENT_NAMES.includes(nodeName) &&
2602
2602
  !isInputValueOnly) {
2603
2603
  propName = getPropName('default' + attributeNameLowerCased);
2604
2604
  }