mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
feat(weakSql): deal with Incomplete string escaping or encoding
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user