Examples of errors detected by the V7010 diagnostic
V7010. Return value of the function is required to be utilized.
Overleaf
V7010. The return value of function 'replace' is required to be utilized. sanitize.js 14
/**
* Sanitize a translation string to prevent injection attacks
*
* @param {string} input
* @returns {string}
*/
function sanitize(input) {
// Block Angular XSS
// Ticket: https://github.com/overleaf/issues/issues/4478
input = input.replace(/'/g, ''')
// Use left quote where (likely) appropriate.
input.replace(/ '/g, ' '') // <=
....
}