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({
|
constraints.push({
|
||||||
field: field.trim(),
|
field: field.trim(),
|
||||||
relation: relation.trim() as Relation,
|
relation: relation.trim() as Relation,
|
||||||
value: pickValue(value.replace(/&&|&|;/, '').trim()),
|
value: pickValue(value.replace(/&&|&|;/g, '').trim()),
|
||||||
});
|
});
|
||||||
|
|
||||||
/* meaningless return value */
|
/* meaningless return value */
|
||||||
|
|||||||
Reference in New Issue
Block a user