@seanox/aspect-js
Version:
full stack JavaScript framework for SPAs incl. reactivity rendering, mvc / mvvm, models, expression language, datasource, routing, paths, unit test and some more
8 lines • 388 B
JavaScript
const normalizeOutput = (output) => {
output = output || "";
output = output.replace(/illegal character/ig, "~~~Error_1~");
output = output.replace(/fields are not currently supported/ig, "~~~Error_1~");
output = output.replace(/invalid or unexpected token/ig, "~~~Error_1~");
output = output.replace(/invalid character/ig, "~~~Error_1~");
return output;
};