From 313c1f880ed75feb1b53f021f0dbfdc7bdbacd2a Mon Sep 17 00:00:00 2001 From: Jonathan Gamble <101470903+schlawg@users.noreply.github.com> Date: Wed, 15 May 2024 00:45:18 -0500 Subject: [PATCH] dont put js regexes in quotes --- ui/site/src/dialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/site/src/dialog.ts b/ui/site/src/dialog.ts index 9348aed1d89b..ab4815dc4fa5 100644 --- a/ui/site/src/dialog.ts +++ b/ui/site/src/dialog.ts @@ -30,7 +30,7 @@ export async function domDialog(o: DomDialogOpts): Promise { } const view = $as('
'); - if (o.class) view.classList.add(...o.class.split('/[. ]/').filter(x => x)); + if (o.class) view.classList.add(...o.class.split(/[. ]/).filter(x => x)); for (const [k, v] of Object.entries(o.attrs?.view ?? {})) view.setAttribute(k, String(v)); if (html) view.innerHTML = html;