Skip to content

Commit

Permalink
Merge pull request #962 from Disservin/strip-args
Browse files Browse the repository at this point in the history
strip option args
  • Loading branch information
niklasf committed Feb 26, 2023
2 parents 853e226 + 7cf7dc1 commit 3fc30d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ def _option(self, engine: UciProtocol, arg: str) -> None:
current_var = None
var = []

for token in arg.split(" "):
for token in arg.strip().split(" "):
if token == "name" and not name:
current_parameter = "name"
elif token == "type" and not type:
Expand Down

0 comments on commit 3fc30d6

Please sign in to comment.