Whoops: Removed debug logging

This commit is contained in:
Artur
2021-11-28 19:41:46 +02:00
parent c4272299fb
commit f922663aaf
@@ -22,7 +22,6 @@ const MAX_PAPER_LENGTH = 5000; // Question, should we send this with ui_data?
// Find where people put in equations inside two $ symbols and convert them to proper LaTeX // Find where people put in equations inside two $ symbols and convert them to proper LaTeX
const equationRegex = (text) => { const equationRegex = (text) => {
logger.log("Starting to convert:", text)
const find_equation_formatting = /\$.*\$/igm; const find_equation_formatting = /\$.*\$/igm;
const find_regex = find_equation_formatting.exec(text); const find_regex = find_equation_formatting.exec(text);
if (find_regex) { if (find_regex) {
@@ -32,10 +31,8 @@ const equationRegex = (text) => {
throwOnError: false, throwOnError: false,
}); });
text = text.replace(find_regex[i], convertToLatex); text = text.replace(find_regex[i], convertToLatex);
logger.log("Converting:", convertToLatex, i);
} }
} }
logger.log("Replaced Result", text)
return text; return text;
} }