function processCopyrightComment(content) {
	const lines = content.split("\n");
	let commentOut = false;
	for (let i = 0; i < lines.length; i++) {
		const line = lines[i].trim();
		if (
			line === "/**" &&
			lines[i + 1] &&
			lines[i + 1].includes("Copyright")
		) {
			commentOut = true;
		}
		if (commentOut) {
			lines[i] = "// " + lines[i];
			if (line === "*/") {
				commentOut = false;
			}
		}
	}
	return lines.join("\n");
}
/*
 * Hiding the Theming Base Content copyright headers from the CSS
 * by adding LESS comments (//) in front of them.
 *
 * This is mainly important because some UI5 libraries (sap.viz) are
 * having problems with the curly brackets that are part of those comments.
 */
Hiding the Theming Base Content copyright headers from the CSS
by adding LESS comments (//) in front of them.

This is mainly important because some UI5 libraries (sap.viz) are
having problems with the curly brackets that are part of those comments.
Hiding the Theming Base Content copyright headers from the CSS by adding LESS comments ( // ) in front of them . This is mainly important because some UI5 libraries ( sap . viz ) are having problems with the curly brackets that are part of those comments .
function processCopyrightComment(content) {
	const lines = content.split("\n");
	let commentOut = false;
	for (let i = 0; i < lines.length; i++) {
		const line = lines[i].trim();
		if (
			line === "/**" &&
			lines[i + 1] &&
			lines[i + 1].includes("Copyright")
		) {
			commentOut = true;
		}
		if (commentOut) {
			lines[i] = "// " + lines[i];
			if (line === "*/") {
				commentOut = false;
			}
		}
	}
	return lines.join("\n");
}
function processCopyrightComment ( content ) { const lines = content . split ( "\n" ) ; let commentOut = false ; for ( let i = 0 ; i < lines . length ; i ++ ) { const line = lines [ i ] . trim ( ) ; if ( line === "/**" && lines [ i + 1 ] && lines [ i + 1 ] . includes ( "Copyright" ) ) { commentOut = true ; } if ( commentOut ) { lines [ i ] = "// " + lines [ i ] ; if ( line === "*/" ) { commentOut = false ; } } } return lines . join ( "\n" ) ; }
Hiding the Theming Base Content copyright headers from the CSS
 by adding LESS comments (//) in front of them.
Hiding the Theming Base Content copyright headers from the CSS by adding LESS comments ( // ) in front of them .