Review before applying
Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
Replacement text can contain characters that a string API treats as instructions. Pageferry brings text-editing code into a Windows AI coding conversation so you can review literal substitutions without silently changing what the user supplied.
if (token.length === 0) throw new Error("token.empty");
return source.replaceAll(token, () => replacement);Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
Base URL, credentials and a reachable server.
Reject an empty token and test $&, $1, $$ and input with no match while keeping the original string unchanged.
if (token.length === 0) throw new Error("token.empty");
return source.replaceAll(token, () => replacement);