From b49d0251439fba873a0eb1c5087d565cdb0afab6 Mon Sep 17 00:00:00 2001 From: Nikhil Nagarajan Date: Mon, 26 Jan 2026 14:40:37 -0500 Subject: [PATCH] comment clarity --- module/helpers/utils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/helpers/utils.mjs b/module/helpers/utils.mjs index 7cf1e70b..c0dd45bd 100644 --- a/module/helpers/utils.mjs +++ b/module/helpers/utils.mjs @@ -12,7 +12,7 @@ export function rollCommandToJSON(text) { const flavor = flavorMatch ? flavorMatch[1] : null; // Match key="quoted string" OR key=unquotedValue - const PAIR_RE = /(\w+)\s*=\s*("(?:[^"\\]|\\.)*"|[^\]\}\s]+)/g; //updated regex to allow escaped quotes in quoted strings + const PAIR_RE = /(\w+)\s*=\s*("(?:[^"\\]|\\.)*"|[^\]\}\s]+)/g; //updated regex to allow escaped quotes in quoted strings and avoid matching closing brackets/braces const result = {}; for (const [, key, raw] of text.matchAll(PAIR_RE)) { let value;