Skip to content

Commit 3fc30d6

Browse files
authored
Merge pull request #962 from Disservin/strip-args
strip option args
2 parents 853e226 + 7cf7dc1 commit 3fc30d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chess/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ def _option(self, engine: UciProtocol, arg: str) -> None:
13771377
current_var = None
13781378
var = []
13791379

1380-
for token in arg.split(" "):
1380+
for token in arg.strip().split(" "):
13811381
if token == "name" and not name:
13821382
current_parameter = "name"
13831383
elif token == "type" and not type:

0 commit comments

Comments
 (0)