Просмотр исходного кода

fix undefined value

Former-commit-id: 81d6995ff87c6596d70deb29898c669512027db5
Gildas 6 лет назад
Родитель
Сommit
58da2fd084
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/single-file/modules/css-fonts-minifier.js

+ 1 - 1
lib/single-file/modules/css-fonts-minifier.js

@@ -300,8 +300,8 @@ this.singlefile.lib.modules.fontsMinifier = this.singlefile.lib.modules.fontsMin
 	}
 	}
 
 
 	function testUnicodeRange(docContent, unicodeRange) {
 	function testUnicodeRange(docContent, unicodeRange) {
-		unicodeRange = singlefile.lib.helper.removeQuotes(unicodeRange);
 		if (unicodeRange) {
 		if (unicodeRange) {
+			unicodeRange = singlefile.lib.helper.removeQuotes(unicodeRange);
 			const unicodeRanges = unicodeRange.split(REGEXP_COMMA);
 			const unicodeRanges = unicodeRange.split(REGEXP_COMMA);
 			let invalid;
 			let invalid;
 			const result = unicodeRanges.filter(rangeValue => {
 			const result = unicodeRanges.filter(rangeValue => {