From 71e2b3a394d14e6515be7d07a102c0845052a546 Mon Sep 17 00:00:00 2001 From: LewdLeah Date: Fri, 20 Jun 2025 22:25:18 -0400 Subject: [PATCH] Update context.js --- .../Pokemon-Safari/bulk-card-generator-src/context.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/Pokemon-Safari/bulk-card-generator-src/context.js b/examples/Pokemon-Safari/bulk-card-generator-src/context.js index eb27e20..92dc79e 100644 --- a/examples/Pokemon-Safari/bulk-card-generator-src/context.js +++ b/examples/Pokemon-Safari/bulk-card-generator-src/context.js @@ -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);