fix(agents): satisfy smart quote lint · openclaw/openclaw@d4543ac
ferminquant
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -252,7 +252,7 @@ function shouldCloseSmartQuotedValueAt(raw: string, quoteIndex: number, valueKey
|
252 | 252 | function decodeSmartQuotedJsonStringEscapes(value: string): string { |
253 | 253 | return value.replace(/\\(?:(["\\/bfnrt])|u([0-9a-fA-F]{4}))/g, (_match, escaped, hex) => |
254 | 254 | typeof hex === "string" |
255 | | - ? String.fromCharCode(parseInt(hex, 16)) |
| 255 | + ? String.fromCharCode(Number.parseInt(hex, 16)) |
256 | 256 | : TOOLCALL_REPAIR_JSON_STRING_ESCAPES[escaped as string], |
257 | 257 | ); |
258 | 258 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。