tasks/inline.js
function getPathToDestination(pathToSource, pathToDestinationFile) {
		var isDestinationDirectory = (/\/$/).test(pathToDestinationFile);
		var fileName = path.basename(pathToSource);
		var newPathToDestination;
		if (typeof pathToDestinationFile === 'undefined') {
			newPathToDestination = pathToSource;
		} else {
			newPathToDestination = pathToDestinationFile + (isDestinationDirectory ? fileName : '');
		}
		return newPathToDestination;
	}
function getPathToDestination(pathToSource, pathToDestinationFile) {
		var isDestinationDirectory = (/\/$/).test(pathToDestinationFile);
		var fileName = path.basename(pathToSource);
		var newPathToDestination;
		if (typeof pathToDestinationFile === 'undefined') {
			newPathToDestination = pathToSource;
		} else {
			newPathToDestination = pathToDestinationFile + (isDestinationDirectory ? fileName : '');
		}
		return newPathToDestination;
	}
function getPathToDestination ( pathToSource , pathToDestinationFile ) { var isDestinationDirectory = ( / \/$ / ) . test ( pathToDestinationFile ) ; var fileName = path . basename ( pathToSource ) ; var newPathToDestination ; if ( typeof pathToDestinationFile === 'undefined' ) { newPathToDestination = pathToSource ; } else { newPathToDestination = pathToDestinationFile + ( isDestinationDirectory ? fileName : '' ) ; } return newPathToDestination ; }
from grunt-text-replace.js in grunt-text-replace
from grunt - text - replace . js in grunt - text - replace