Skip to content

Commit d6f3433

Browse files
authored
Merge pull request #19 from nevalain/patch-1
Update clipboard.ts
2 parents e179460 + 0442009 commit d6f3433

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/clipboard.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ function getClipboardTextCommand(
115115
"`\""
116116
)}\\""`;
117117
case "linux":
118-
return `xclip -selection clipboard -in <<< "${text.replace(
119-
/"/g,
120-
"\\\""
121-
)}"`;
118+
return `echo "${text.replace(/"/g, "\\\"")}" | xclip -selection clipboard`;
122119
default:
123120
return null;
124121
}

0 commit comments

Comments
 (0)