def should_process(self, file_path):
return file_path.endswith(".js") and (not file_path.endswith("InjectedScript.js"))
def should_process(self, file_path):
return file_path.endswith(".js") and (not file_path.endswith("InjectedScript.js"))
def process(self, lines, file_path, line_numbers=None):
for line in lines:
comment_start = line.find("//")
def process(self, lines, file_path, line_numbers=None):
for line in lines:
comment_start = line.find("//")
for pattern in self._patterns:
line_strings = re.findall(pattern, line)
for string in line_strings:
for pattern in self._patterns:
line_strings = re.findall(pattern, line)
for string in line_strings: