Skip to content

Commit 7cf7dc1

Browse files
committed
strip option args
1 parent d13921c commit 7cf7dc1

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)