Skip to content

Commit

Permalink
Update @sabaki/gtp to fix #400
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Jun 3, 2018
1 parent deec808 commit b7c951c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.

* Updater links directly to the appropriate download URL when an update is available

**Fixed**

* Fix engine not working when having empty initial commands

## [Sabaki v0.34.0][v0.34.0] (2018-05-29)

**Added**
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
"dependencies": {
"@sabaki/deadstones": "^2.1.0",
"@sabaki/gtp": "^1.1.0",
"@sabaki/gtp": "^1.1.1",
"@sabaki/influence": "^1.1.4",
"@sabaki/sgf": "^1.3.0",
"argv-split": "^2.0.1",
Expand All @@ -91,8 +91,8 @@
"react": "^16.4.0",
"tmp": "0.0.33",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.9.1",
"webpack-cli": "^2.1.4"
"webpack": "^4.10.2",
"webpack-cli": "^3.0.1"
},
"scripts": {
"test": "mocha",
Expand Down
2 changes: 1 addition & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ class App extends Component {
controller.on('started', () => {
if (commands == null || commands.trim() === '') return

for (let command of commands.split(';')) {
for (let command of commands.split(';').filter(x => x.trim() !== '')) {
controller.sendCommand(gtp.Command.fromString(command))
}
})
Expand Down

0 comments on commit b7c951c

Please sign in to comment.