From bd6bd90884b200f744059b9ce522994f375b5e9f Mon Sep 17 00:00:00 2001 From: "liqiang.wang" Date: Mon, 5 Jul 2021 20:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8D=E8=B7=AF=E5=BE=84=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=9C=80=E5=90=8E=E4=B8=80=E4=B8=AA/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/stomp-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stomp-utils.js b/lib/stomp-utils.js index 8e70a5c..999397e 100644 --- a/lib/stomp-utils.js +++ b/lib/stomp-utils.js @@ -63,7 +63,7 @@ var stompUtils = { genId: genId, tokenizeDestination: function (dest) { - return dest.substr(dest.indexOf('/') + 1).split('.'); + return dest.substr(dest.lastIndexOf('/') + 1).split('.'); }, sendCommand: function (socket, command, headers, body, want_receipt) {