Change delimiter back to colon.

This commit is contained in:
Dermot Duffy committed 2023-03-13 21:49:35 -07:00
1 parent b0528d94f9
commit 1e72a7fa11
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import { createFrigateCardCustomAction } from './action.js';
export const getActionsFromQueryString = (): FrigateCardCustomAction[] => {
const params = new URLSearchParams(window.location.search);
const actions: FrigateCardCustomAction[] = [];
const actionRE = new RegExp(/^frigate-card-action(\/(?<cardID>\w+))?\/(?<action>\w+)/);
const actionRE = new RegExp(/^frigate-card-action(:(?<cardID>\w+))?:(?<action>\w+)/);
for (const [key, value] of params.entries()) {
const match = key.match(actionRE);