Javascript transformer not working as expected with clipboard manager when there is no space


Bug description:
I want to add a name of sorts to my clipboard manager. And so I have a text transform that looks like this

async (clipboardContentString) => {
return clipboardContentString.split(":")[1]
}

to transform the items in the clipboard manager from NAME:STRING to STRING.

In Test Execute with a string like above it works well. However when I actually use it on the clipboard manager - nothing gets pasted!
What is also weird is that if I write my item in the clipboard manager as NAME: STRING (with a space after the ":") the transform does apply but then it keeps the space after.
Is this normal behaviour? Also are there logs anywhere?


Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
Clipboard manager


Device information:

  • Type of Mac: M1 Max Mac
  • macOS version: 15.3
  • BetterTouchTool version: (please post the exact version - not just "the latest one") 5.160

I just quickly tried but it seems to work ok here. For you it behaves not like this?

Well it now is :sweat_smile:
Very weird i was banging my head against the wall trying to figure out why it wouldn't.
Regardless - are there any logs that we can see from the result of these transforms?

In theory you can use safari's debugging features (need to enable developer mode in Safari), but might sometimes be hard to catch it