Skip to content

Commit 89c2a87

Browse files
authored
Merge pull request #14 from hawckins/patch-2
Update in util.js
2 parents 8df5cdd + 797a67c commit 89c2a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/util/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const fontFormats = 'eot,woff2,woff,ttf,svg';
9898
* @return {Array}
9999
*/
100100
function generatedFontFiles(options) {
101-
const mask = '*.{' + options.types + '}';
101+
const mask = options.types.length > 1 ? '*.{' + options.types + '}' : '*.' + options.types;
102102

103103
return glob.sync(path.join(options.dest, options.fontFilename + mask));
104104
}

0 commit comments

Comments
 (0)