Fix: function name
This commit is contained in:
parent
e702f608cd
commit
a4e77a625d
@ -69,7 +69,7 @@ class Proxy:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
content = f'function is{self.name}(h) {{\n'
|
content = f'function {self.function_name}(h) {{\n'
|
||||||
for target in self.__targets:
|
for target in self.__targets:
|
||||||
content += f'\tif (shExpMatch(h, "{target}")) return true;\n'
|
content += f'\tif (shExpMatch(h, "{target}")) return true;\n'
|
||||||
return f'{content}\treturn false;\n}}'
|
return f'{content}\treturn false;\n}}'
|
||||||
|
Loading…
Reference in New Issue
Block a user