MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / decode

Function decode

scripts/createInvisibleText.js:277–280  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

275 return res;
276};
277export const decode = (text) => {
278 if (!canDecode(text)) return text;
279 return text.replace(encodedPattern, `>${_decode(text)}<`);
280};
281
282const canDecode = (text) => {
283 return encodedPattern.test(text);

Callers 2

doDecodeFunction · 0.85

Calls 3

canDecodeFunction · 0.85
_decodeFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected