index.js
function handleEscaping(tokens, token, index) {
	if (index === 0) {
		return [token];
	}

	const previousToken = tokens[index - 1];

	if (!previousToken.endsWith('\\')) {
		return [...tokens, token];
	}

	return [...tokens.slice(0, index - 1), `${previousToken.slice(0, -1)} ${token}`];
}
function handleEscaping(tokens, token, index) {
	if (index === 0) {
		return [token];
	}

	const previousToken = tokens[index - 1];

	if (!previousToken.endsWith('\\')) {
		return [...tokens, token];
	}

	return [...tokens.slice(0, index - 1), `${previousToken.slice(0, -1)} ${token}`];
}
function handleEscaping ( tokens , token , index ) { if ( index === 0 ) { return [ token ] ; } const previousToken = tokens [ index - 1 ] ; if ( ! previousToken . endsWith ( '\\' ) ) { return [ ... tokens , token ] ; } return [ ... tokens . slice ( 0 , index - 1 ) , ` ${ previousToken . slice ( 0 , - 1 ) } ${ token } ` ] ; }
Allow spaces to be escaped by a backslash if not meant as a delimiter
Allow spaces to be escaped by a backslash if not meant as a delimiter