Transform using split and space not working in clipboard manager

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.
I even logged the result on the safari console - i see the result but when i actually hit the transformer in the clipboard it does not output the text as expected.

I had this issue before, but now it’s happening again. I opened a new ticket so we can track it as the other one was not being followed. Thanks!


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.750

Can you check whether 5.778 alpha resolves this (building & uploading now)? I might need to apply this to other places.

it’s intermittent now - sometimes it does work other times it does not.
If i edit the string directly on the clipboard manager it does not work however

Confirmed working on latest version 5.795. Thank you!