auto-component 0.0.23 → 0.0.25

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.jsx +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-component",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "main": "src/index.jsx",
5
5
  "peerDependencies": {
6
6
  "react": "^18.2.0",
package/src/index.jsx CHANGED
@@ -58,13 +58,13 @@ const AutoComponent = ({ exclusions }) => {
58
58
  };
59
59
 
60
60
  // full exclusion
61
- const cleanExclusionsFull = (html) => {
62
- const regexExcludeClass = /<[^>]*\sclass\s*=\s*['"]([^'"]*exclude[^'"]*)['"][^>]*>[\s\S]*?<\/[^>]*>/g
63
- const cleanedHtml = html.replace(regexExcludeClass, '')
64
- const scriptIndex = cleanedHtml.lastIndexOf('<script')
65
-
66
- return formatHtml(cleanedHtml.substring(0, scriptIndex))
67
- }
61
+ // const cleanExclusionsFull = (html) => {
62
+ // const regexExcludeClass = /<[^>]*\sclass\s*=\s*['"]([^'"]*exclude[^'"]*)['"][^>]*>[\s\S]*?<\/[^>]*>/g
63
+ // const cleanedHtml = html.replace(regexExcludeClass, '')
64
+ // const scriptIndex = cleanedHtml.lastIndexOf('<script')
65
+ //
66
+ // return formatHtml(cleanedHtml.substring(0, scriptIndex))
67
+ // }
68
68
 
69
69
  // exclude non <style> data and remove comments
70
70
  const cleanStyles = (css) => {