Skip to content

Commit

Permalink
fix(): right way of parsing endpoint name, closes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucharz committed Dec 19, 2017
1 parent 68d8822 commit 70ad19c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/commands/socket-call.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ class SocketEndpointCall {
async run ([fullEndpointName, cmd]) {
try {
const bodyOnly = cmd.body
const socketName = fullEndpointName.split('/')[0]
const endpointName = fullEndpointName.split('/')[1]
const [, socketName, endpointName] = fullEndpointName.match(/([^/]*)\/(.*)/)
const socket = await this.Socket.get(socketName)
const endpointObj = await socket.getEndpoint(endpointName)

Expand Down

0 comments on commit 70ad19c

Please sign in to comment.