@symbo.ls/scratch 2.11.450 → 2.11.464

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.
@@ -18,11 +18,12 @@ export const generateSprite = (icons) => {
18
18
  }
19
19
 
20
20
  const parseRootAttributes = (htmlString) => {
21
- if (!isString(htmlString)) {
22
- return console.warn(`parseRootAttributes: ${htmlString} is not a string`)
21
+ const val = htmlString.default || htmlString
22
+ if (!isString(val)) {
23
+ return console.warn(`parseRootAttributes: ${val} is not a string`)
23
24
  }
24
25
 
25
- const match = htmlString.match(/<svg\s+(.*?)>/)
26
+ const match = val.match(/<svg\s+(.*?)>/)
26
27
  if (!match || !match[1]) {
27
28
  return {}
28
29
  }