代码: 全选
navigator.clipboard.writeText
Instead of getting two forward slashes, a space, and the word "test" on my clipboard, I instead get a file protocol address copied to my clipboard.
I don't know how to speak Chinese. I tried to post this without an English explanation, but I got a rejection because it said there was a malware URL (there wasn't, it was just the file protocol URI).
I think this bug is occurring because there is some sort of workaround integrated into Catsxp to allow it to open files from your local filesystem.