mirror of
https://github.com/LewdLeah/Auto-Cards.git
synced 2025-07-06 21:50:27 -04:00
10 lines
323 B
JavaScript
10 lines
323 B
JavaScript
// 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);
|