UNPKG

@seanox/aspect-js

Version:

full stack JavaScript framework for SPAs incl. reactivity rendering, mvc / mvvm, models, expression language, datasource, virtual paths, unit test and some more

8 lines 388 B
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; };