From 8ada1b069d4183fb85d19c67a151cad186625f26 Mon Sep 17 00:00:00 2001 From: bob Date: Wed, 18 Dec 2019 17:52:27 -0500 Subject: fixes to fieldKey searces within layoutstrings to use ' instead of " --- src/client/util/DropConverter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/util') diff --git a/src/client/util/DropConverter.ts b/src/client/util/DropConverter.ts index 349d5d7e3..9e036d6c2 100644 --- a/src/client/util/DropConverter.ts +++ b/src/client/util/DropConverter.ts @@ -10,7 +10,7 @@ import { ScriptField } from "../../new_fields/ScriptField"; function makeTemplate(doc: Doc): boolean { const layoutDoc = doc.layout instanceof Doc && doc.layout.isTemplateField ? doc.layout : doc; - const layout = StrCast(layoutDoc.layout).match(/fieldKey={'[^"]*'}/)![0]; + const layout = StrCast(layoutDoc.layout).match(/fieldKey={'[^']*'}/)![0]; const fieldKey = layout.replace("fieldKey={'", "").replace(/'}$/, ""); const docs = DocListCast(layoutDoc[fieldKey]); let any = false; -- cgit v1.2.3-70-g09d2