tasks/font_loader.js
function getNextClar(params, string, files) {
		if (params === 'all') {
			files.push(string);
			return true;
		}
		if (Array.isArray(params)){
			params.forEach(function(item, i, array) {
				files.push(string + '.' + item + '$');
				return true;
			});
		}else if (typeof params === 'object'){
			var param;
			for (param in params) {
				var buffer = string;
				var regular;
				if (param === 'all'){
					regular = '\\w+';
				}else{
					regular = param;
				}
				string += !string ? regular : '-' + regular;
				getNextClar(params[param], string, files);
				string = buffer;
			}
		}else{
			files.push(string + '.' + params + '$');
		}
		return true;
	}
function getNextClar(params, string, files) {
		if (params === 'all') {
			files.push(string);
			return true;
		}
		if (Array.isArray(params)){
			params.forEach(function(item, i, array) {
				files.push(string + '.' + item + '$');
				return true;
			});
		}else if (typeof params === 'object'){
			var param;
			for (param in params) {
				var buffer = string;
				var regular;
				if (param === 'all'){
					regular = '\\w+';
				}else{
					regular = param;
				}
				string += !string ? regular : '-' + regular;
				getNextClar(params[param], string, files);
				string = buffer;
			}
		}else{
			files.push(string + '.' + params + '$');
		}
		return true;
	}
function getNextClar ( params , string , files ) { if ( params === 'all' ) { files . push ( string ) ; return true ; } if ( Array . isArray ( params ) ) { params . forEach ( function ( item , i , array ) { files . push ( string + '.' + item + '$' ) ; return true ; } ) ; } else if ( typeof params === 'object' ) { var param ; for ( param in params ) { var buffer = string ; var regular ; if ( param === 'all' ) { regular = '\\w+' ; } else { regular = param ; } string += ! string ? regular : '-' + regular ; getNextClar ( params [ param ] , string , files ) ; string = buffer ; } } else { files . push ( string + '.' + params + '$' ) ; } return true ; }
Create regexp massive
@param  {array} params massive
@param  {string} string regexp
@param  {array} files  creating massive
@return {boolean}
Create regexp massive