single-file-core 1.0.61 → 1.0.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -177,8 +177,13 @@ function parse(value) {
177
177
  while (tokenNode && tokenNode.data.type == "Operator" && tokenNode.data.value == ",") {
178
178
  tokenNode = tokenNode.next;
179
179
  }
180
- while (tokenNode && tokenNode.data.type == "Identifier") {
181
- familyName += " " + removeQuotes(cssTree.generate(tokenNode.data));
180
+ if (tokenNode.data.type == "Identifier") {
181
+ while (tokenNode && tokenNode.data.type == "Identifier") {
182
+ familyName += " " + removeQuotes(cssTree.generate(tokenNode.data));
183
+ tokenNode = tokenNode.next;
184
+ }
185
+ } else {
186
+ familyName = removeQuotes(cssTree.generate(tokenNode.data));
182
187
  tokenNode = tokenNode.next;
183
188
  }
184
189
  familyName = familyName.trim();