From 39067b0073d1641e38423c2d9f3e62b4ac738b43 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:13:36 -0400 Subject: [PATCH] fix: Adds `extends` to the statblock editor suggest --- src/suggest/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/suggest/index.ts b/src/suggest/index.ts index 193d913e..cc63f86c 100644 --- a/src/suggest/index.ts +++ b/src/suggest/index.ts @@ -27,7 +27,8 @@ const STANDARD_FIELDS = [ "columns", "forceColumns", "columnWidth", - "columnHeight" + "columnHeight", + "extends" ]; export class StatblockSuggester extends EditorSuggest { @@ -204,9 +205,9 @@ export class StatblockSuggester extends EditorSuggest { query }; } - if (/^(monster|creature):/.test(line)) { + if (/^(monster|creature|extends):/.test(line)) { this._context = SuggestContext.Creature; - const match = line.match(/^(monster|creature):\s?(.*)\n?/); + const match = line.match(/^(monster|creature|extends):\s?(.*)\n?/); if (!match) return null; const [_, param, query] = match;