Last active
November 13, 2023 00:44
-
-
Save foolgry/fd0ae6c5976e787b963566916252ca97 to your computer and use it in GitHub Desktop.
utools 去除转义字符,展示json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let json=ENTER.payload | |
json = json.replace(/\\\\/g, "\\").replace(/\\\"/g, '"') | |
utools.redirect("json",json) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
正则匹配
/^\s*({[\s\S]}|[[\s\S]])\s*$/