Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat(weakSql): deal with Incomplete string escaping or encoding

tzhangchif54274442cea
diff --git a/libs/components/editor-blocks/src/blocks/group/utils/weak-sql/weakSqlCreator.ts b/libs/components/editor-blocks/src/blocks/group/utils/weak-sql/weakSqlCreator.ts
index 47debf2175..6d980155fa 100644
--- a/libs/components/editor-blocks/src/blocks/group/utils/weak-sql/weakSqlCreator.ts
+++ b/libs/components/editor-blocks/src/blocks/group/utils/weak-sql/weakSqlCreator.ts
@@ -49,7 +49,7 @@ const weakSqlCreator = (weak_sql_express = ''): Promise<Constraint[]> => {
constraints.push({
field: field.trim(),
relation: relation.trim() as Relation,
- value: pickValue(value.replace(/&&|&|;/, '').trim()),
+ value: pickValue(value.replace(/&&|&|;/g, '').trim()),
});
/* meaningless return value */