Last active
September 9, 2019 13:07
-
-
Save gooddadmike/f5eedfb5bc877bae48caa68e65f14167 to your computer and use it in GitHub Desktop.
CopyQ change from ' to ''
This file contains 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
copyq: | |
function modifyText(text) | |
{ | |
return text.replace(/'/g, "''"); | |
} | |
if (!copy()) | |
abort() | |
var text = str(clipboard()) | |
var newText = modifyText(text) | |
if (text == newText) | |
abort(); | |
copy(newText) | |
paste() | |
// I set my shortcut to [Ctrl]+[Alt]+[Down] (Numpad 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment