Update context.js

This commit is contained in:
LewdLeah 2025-06-20 22:25:18 -04:00 committed by GitHub
parent 8d923a2fdb
commit 71e2b3a394
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1 +1,10 @@
// wip
// Your "Context" tab should look like this
const modifier = (text) => {
[text, stop] = AutoCards("context", text, stop);
text = text.replace(/^[\s\S]*?(?=-----)/, "\n");
for (const [pattern, replacement] of replacements) {
text = text.replace(pattern, replacement);
}
return {text, stop};
};
modifier(text);