tasks/font_loader.js
function createDownloadList() {
		uploadFiles = [];
	

		files.forEach(function(item, i, arr) {
			var preg = new RegExp(item);
			var check = false;    
			serverFonts.forEach(function(item, i, arr) {
				if (preg.test(item)) {
					uploadFiles.push(item);
					check = true;
					// serverFonts.remove(item);
				}
			});
			if (!check){
				grunt.log.warn('You have no suitable fonts at pattern ' + item);
			}
		});

		downloadFiles();
	}
function createDownloadList() {
		uploadFiles = [];
	

		files.forEach(function(item, i, arr) {
			var preg = new RegExp(item);
			var check = false;    
			serverFonts.forEach(function(item, i, arr) {
				if (preg.test(item)) {
					uploadFiles.push(item);
					check = true;
					// serverFonts.remove(item);
				}
			});
			if (!check){
				grunt.log.warn('You have no suitable fonts at pattern ' + item);
			}
		});

		downloadFiles();
	}
function createDownloadList ( ) { uploadFiles = [ ] ; files . forEach ( function ( item , i , arr ) { var preg = new RegExp ( item ) ; var check = false ; serverFonts . forEach ( function ( item , i , arr ) { if ( preg . test ( item ) ) { uploadFiles . push ( item ) ; check = true ; // serverFonts.remove(item); } } ) ; if ( ! check ) { grunt . log . warn ( 'You have no suitable fonts at pattern ' + item ) ; } } ) ; downloadFiles ( ) ; }
Create list for downloading
Create list for downloading