Open sebastianrath opened 2 years ago
See: https://github.com/snowtrack/snowfs/pull/255/checks?check_run_id=5491245213
https://github.com/snowtrack/snowfs/security/code-scanning/1?query=ref%3Arefs%2Fpull%2F255%2Fmerge+ref%3Arefs%2Fpull%2F255%2Fhead
export function jsonCompliant(s : string) : string { return s .replace(/\\n/g, '\\n') .replace(/\\'/g, "\\'") .replace(/\\"/g, '\\"') .replace(/\\&/g, '\\&') .replace(/\\r/g, '\\r') .replace(/\\t/g, '\\t') .replace(/\\b/g, '\\b') .replace(/\\f/g, '\\f'); }
See: https://github.com/snowtrack/snowfs/pull/255/checks?check_run_id=5491245213
https://github.com/snowtrack/snowfs/security/code-scanning/1?query=ref%3Arefs%2Fpull%2F255%2Fmerge+ref%3Arefs%2Fpull%2F255%2Fhead