From a4e77a625d534e2854f2beaf6c4d31b18c95458a Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Thu, 30 May 2024 01:44:50 +0300 Subject: [PATCH] Fix: function name --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 2f57ece..7da3817 100644 --- a/app/models.py +++ b/app/models.py @@ -69,7 +69,7 @@ class Proxy: return False def render(self): - content = f'function is{self.name}(h) {{\n' + content = f'function {self.function_name}(h) {{\n' for target in self.__targets: content += f'\tif (shExpMatch(h, "{target}")) return true;\n' return f'{content}\treturn false;\n}}'