diff options
| author | bob <bcz@cs.brown.edu> | 2019-12-18 17:52:27 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-12-18 17:52:27 -0500 |
| commit | 8ada1b069d4183fb85d19c67a151cad186625f26 (patch) | |
| tree | 1f2cc29d621ea1e59382d0a547232c09ccb4fcc3 /src/client/util | |
| parent | 1b0a2af4e85ee38ff02c3d0e99179826173e0da4 (diff) | |
fixes to fieldKey searces within layoutstrings to use ' instead of "
Diffstat (limited to 'src/client/util')
| -rw-r--r-- | src/client/util/DropConverter.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
