From 0fcf24bfcb6806f844ddb4fade5dab6787b17422 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 13 Jul 2025 19:14:47 -0600 Subject: [PATCH] Update the toID method to collapse multiple whitespace characters to a single underscore --- module/utils/toID.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/utils/toID.mjs b/module/utils/toID.mjs index 384ed22..312766e 100644 --- a/module/utils/toID.mjs +++ b/module/utils/toID.mjs @@ -8,6 +8,6 @@ export function toID(text) { return text .toLowerCase() - .replace(/\s/g, `_`) + .replace(/\s+/g, `_`) .replace(/\W/g, ``); };