Bug 31565: (QA follow-up) Remove support for _ as wildcard in -like queries

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2022-09-26 10:32:06 -03:00
parent a4f09abd5c
commit 834c4a00cc
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -589,7 +589,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
criteria = "exact";
} else {
// escape SQL LIKE special characters % and _
value = value.replace(/(\%|\_|\\)/g, "\\$1");
value = value.replace(/(\%|\\)/g, "\\$1");
}
part[!attr.includes('.')?'me.'+attr:attr] = criteria === 'exact'
? value