Fix: function name

This commit is contained in:
Gregory Lirent 2024-05-30 01:44:50 +03:00
parent e702f608cd
commit a4e77a625d
Signed by: lirent
GPG Key ID: F616BE337EFFEE77

View File

@ -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}}'