lint: Fix straightforward ESLint errors

This commit is contained in:
Richard Hansen 2021-05-11 16:56:06 -04:00 committed by webzwo0i
parent 59c03bde20
commit 6f2f20233f
9 changed files with 57 additions and 67 deletions

View file

@ -42,7 +42,7 @@ const runTests = () => {
const literal = (v) => {
if ((typeof v) === 'string') {
return `"${v.replace(/[\\\"]/g, '\\$1').replace(/\n/g, '\\n')}"`;
return `"${v.replace(/[\\"]/g, '\\$1').replace(/\n/g, '\\n')}"`;
} else { return JSON.stringify(v); }
};