Framework updates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
5
node_modules/dedent/dist/dedent.js
generated
vendored
5
node_modules/dedent/dist/dedent.js
generated
vendored
@@ -65,9 +65,10 @@ function createDedent(options) {
|
||||
result = result.trim();
|
||||
}
|
||||
|
||||
// handle escaped newlines at the end to ensure they don't get stripped too
|
||||
// Unescape escapes after trimming so sequences like `\n`, `\t`,
|
||||
// `\xHH` and `\u{...}` are preserved (fixes #24)
|
||||
if (escapeSpecialCharacters) {
|
||||
result = result.replace(/\\n/g, "\n");
|
||||
result = result.replace(/\\n/g, "\n").replace(/\\t/g, "\t").replace(/\\r/g, "\r").replace(/\\v/g, "\v").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\0/g, "\0").replace(/\\x([\da-fA-F]{2})/g, (_, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g, (_, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\u([\da-fA-F]{4})/g, (_, h) => String.fromCharCode(parseInt(h, 16)));
|
||||
}
|
||||
|
||||
// Workaround for Bun issue with Unicode characters
|
||||
|
||||
5
node_modules/dedent/dist/dedent.mjs
generated
vendored
5
node_modules/dedent/dist/dedent.mjs
generated
vendored
@@ -61,9 +61,10 @@ function createDedent(options) {
|
||||
result = result.trim();
|
||||
}
|
||||
|
||||
// handle escaped newlines at the end to ensure they don't get stripped too
|
||||
// Unescape escapes after trimming so sequences like `\n`, `\t`,
|
||||
// `\xHH` and `\u{...}` are preserved (fixes #24)
|
||||
if (escapeSpecialCharacters) {
|
||||
result = result.replace(/\\n/g, "\n");
|
||||
result = result.replace(/\\n/g, "\n").replace(/\\t/g, "\t").replace(/\\r/g, "\r").replace(/\\v/g, "\v").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\0/g, "\0").replace(/\\x([\da-fA-F]{2})/g, (_, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g, (_, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\u([\da-fA-F]{4})/g, (_, h) => String.fromCharCode(parseInt(h, 16)));
|
||||
}
|
||||
|
||||
// Workaround for Bun issue with Unicode characters
|
||||
|
||||
Reference in New Issue
Block a user