Update utils.ts

This commit is contained in:
Tonye Jack 2023-05-22 23:52:22 -06:00 committed by GitHub
parent 0a80b05269
commit 72affe97f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -649,7 +649,7 @@ export const jsonOutput = ({
value: string | string[] value: string | string[]
escape: boolean escape: boolean
}): string => { }): string => {
let result = JSON.stringify(value) const result = JSON.stringify(value)
return escape ? result.replace(/"/g, '\\"') : result return escape ? result.replace(/"/g, '\\"') : result
} }