aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authordinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com>2021-08-30 22:37:59 -0400
committerdinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com>2021-08-30 22:37:59 -0400
commit26e265c6fc4950b859724aa2c0fbe6a028a56bfc (patch)
treef8171faa668cc311cd3010e491e291ecc6be460b /src/fields/Doc.ts
parent2df1a0c0cc11c0dbcebf2a53e804cf8ac28db346 (diff)
parent2d2e027f11253834a337680bbfd1ac549bb2a1f0 (diff)
Merge branch 'master' into linking-anh
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index c57f31068..4c22d2e22 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -1093,6 +1093,9 @@ export namespace Doc {
const isTransparent = (color: string) => color !== "" && (Color(color).alpha() !== 1);
return isTransparent(StrCast(doc[key]));
}
+ if (typeof value === "string") {
+ value = value.replace(`,${Utils.noRecursionHack}`, "");
+ }
const fieldVal = doc[key];
if (Cast(fieldVal, listSpec("string"), []).length) {
const vals = Cast(fieldVal, listSpec("string"), []);