Initial import

This commit is contained in:
2025-11-05 20:35:04 +01:00
commit 5b1fd847c2
4586 changed files with 685044 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
const getEscapedAny = (char) => {
switch (char) {
case '\b':
return '\\b';
case '\f':
return '\\f';
case '\n':
return '\\n';
case '\r':
return '\\r';
case '\t':
return '\\t';
case `"`:
case '\\':
return `\\${char}`;
}
let unicode = '';
for (let index = char.length - 1; index >= 0; index--) {
unicode = `\\u${('000' + char.charCodeAt(index).toString(16)).slice(-4)}${unicode}`;
}
return unicode || false;
};
export { getEscapedAny };
//# sourceMappingURL=get-escaped-any.js.map