Skip to content

Conversation

@satouriko
Copy link

BUG: when logging an object in which strings includes quotemark, for eg.

console.log({ a: 'asdfdsa"as\ndfdsf"df' })

displays & copies an invalid json: {"a": "asdfdsa"as\ndfdsf"df"}

The pull request proposes an attempt to fix that issue. It is changed to {"a": "asdfdsa\"as\ndfdsf\"df"}

Meanwhile, behavior logging a string should not be change:

console.log('asdfdsa"as\ndfdsf"df')

displays & copies

asdfdsa"as
dfdsf"df

@tencent-adm
Copy link
Member

tencent-adm commented May 29, 2024

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Wyatex added a commit to Wyatex/vConsole-fix that referenced this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants