Skip to content

Commit ca06b91

Browse files
committed
tests: all tests passing
1 parent 7a96ed0 commit ca06b91

File tree

4 files changed

+997
-996
lines changed

4 files changed

+997
-996
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ $ pip3 install -e ".[dev]"
3131
```shell
3232
$ python3 -m pytest
3333
```
34+
35+
Add `-v` for extra information, useful if tests are failing and you aren't sure why.

batch_deobfuscator/batch_interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ def get_commands(self, logical_line):
309309

310310
counter += 1
311311

312-
# Remove trailing newlines but not trailing spaces
313-
last_com = logical_line[start_command:].rstrip("\n")
312+
# Remove leading spaces and trailing newlines
313+
last_com = logical_line[start_command:].lstrip(" ").rstrip("\n")
314314
if last_com != "":
315315
for part in self.get_commands_special_statement(last_com):
316316
yield part

0 commit comments

Comments
 (0)