Merge pull request #1682 from w0rk3r/master

Remove Field Value Wildcard in ALA Backend
This commit is contained in:
Florian Roth
2021-07-14 08:18:08 +02:00
committed by GitHub
+1 -1
View File
@@ -124,7 +124,7 @@ class AzureLogAnalyticsBackend(SingleTextQueryBackend):
elif val.endswith("*"):
op = "startswith"
val = re.sub('([".^$]|(?![*?]))', '\g<1>', val)
val = re.sub('(\\\\\*|\*)', '.*', val)
val = re.sub('(\\\\\*|\*)', '', val)
val = re.sub('\\?', '.', val)
if "\\" in val:
return "%s @'%s'" % (op, self.cleanValue(val))