From cd53f1800273fe2ea5d8d853d24a6c7c1c76b30f Mon Sep 17 00:00:00 2001 From: Jakub Grzywacz Date: Tue, 17 Dec 2024 10:13:33 +0100 Subject: [PATCH] feat: allow single quote ID wrapper --- src/lib/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util.ts b/src/lib/util.ts index 4284cc3c0..ba10dbbeb 100644 --- a/src/lib/util.ts +++ b/src/lib/util.ts @@ -13,7 +13,7 @@ export function pickNotNil(object: { [prop: string]: unknown }) { return result; } -export const idPattern = /#([^)]+)\)?$/; +export const idPattern = /#([^)]+)'?\)?$/; export const getRandomNumber = () => Math.floor(Math.random() * Math.floor(Math.random() * Date.now()));