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);