Skip to content

Commit 61c053f

Browse files
committed
removed the escapeLiteral function
1 parent dc79141 commit 61c053f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/knowledge-collection-tools.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -404,17 +404,3 @@ Parsing failed due to presence of unnamed (blank node) graphs. Please ensure all
404404
function isEmptyObject(obj) {
405405
return Object.keys(obj).length === 0 && obj.constructor === Object;
406406
}
407-
408-
function escapeLiteral(value) {
409-
const ESCAPE_MAP = {
410-
'"': '\\"',
411-
"\\": "\\\\",
412-
"\b": "\\b",
413-
"\f": "\\f",
414-
"\n": "\\n",
415-
"\r": "\\r",
416-
"\t": "\\t",
417-
};
418-
419-
return value.replace(/["\\\b\f\n\r\t]/g, (char) => ESCAPE_MAP[char]);
420-
}

0 commit comments

Comments
 (0)