lib/java.properties.js
function combineMultiLines(lines) {
    return lines.reduce((acc, cur) => {
        const line = acc[acc.length - 1];
        if (acc.length && isLineContinued(line)) {
            acc[acc.length - 1] = line.replace(/\\$/, '');
            acc[acc.length - 1] += cur;
        } else {
            acc.push(cur);
        }
        return acc;
    }, []);
}
function combineMultiLines(lines) {
    return lines.reduce((acc, cur) => {
        const line = acc[acc.length - 1];
        if (acc.length && isLineContinued(line)) {
            acc[acc.length - 1] = line.replace(/\\$/, '');
            acc[acc.length - 1] += cur;
        } else {
            acc.push(cur);
        }
        return acc;
    }, []);
}
function combineMultiLines ( lines ) { return lines . reduce ( ( acc , cur ) => { const line = acc [ acc . length - 1 ] ; if ( acc . length && isLineContinued ( line ) ) { acc [ acc . length - 1 ] = line . replace ( / \\$ / , '' ) ; acc [ acc . length - 1 ] += cur ; } else { acc . push ( cur ) ; } return acc ; } , [ ] ) ; }
Combines lines which end with a backslash with the next line
@param lines {String[]}
@returns {String[]}
Combines lines which end with a backslash with the next line