tasks/webfont.js
function normalizePath(filepath) {
			if (!filepath.length) return filepath;

			// Make all slashes forward
			filepath = filepath.replace(/\\/g, '/');

			// Make sure path ends with a slash
			if (!_s.endsWith(filepath, '/')) {
				filepath += '/';
			}

			return filepath;
		}
function normalizePath(filepath) {
			if (!filepath.length) return filepath;

			// Make all slashes forward
			filepath = filepath.replace(/\\/g, '/');

			// Make sure path ends with a slash
			if (!_s.endsWith(filepath, '/')) {
				filepath += '/';
			}

			return filepath;
		}
function normalizePath ( filepath ) { if ( ! filepath . length ) return filepath ; // Make all slashes forward filepath = filepath . replace ( / \\ / g , '/' ) ; // Make sure path ends with a slash if ( ! _s . endsWith ( filepath , '/' ) ) { filepath += '/' ; } return filepath ; }
Append a slash to end of a filepath if it not exists and make all slashes forward

@param {String} filepath File path
@return {String}
Append a slash to end of a filepath if it not exists and make all slashes forward