mirror of
https://github.com/LewdLeah/Auto-Cards.git
synced 2025-07-07 06:00:27 -04:00
Update context.js
This commit is contained in:
parent
8d923a2fdb
commit
71e2b3a394
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue