From b11c1422985daf8ef891e224113f0a5b8158da4d Mon Sep 17 00:00:00 2001 From: Vlad Chernushevich Date: Tue, 18 Jun 2013 01:20:30 +0200 Subject: [PATCH] Convert whitespaces to fix links sticking together --- client/assets/src/views/controlbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/assets/src/views/controlbox.js b/client/assets/src/views/controlbox.js index ba618e0..05c5ace 100644 --- a/client/assets/src/views/controlbox.js +++ b/client/assets/src/views/controlbox.js @@ -226,8 +226,8 @@ _kiwi.view.ControlBox = Backbone.View.extend({ // The default command if (command_raw[0] !== '/' || command_raw.substr(0, 2) === '//') { - // Remove any slash escaping at the start (ie. //) - command_raw = command_raw.replace(/^\/\//, '/'); + // Remove any slash escaping at the start (ie. //), convert whitespaces to regular + command_raw = command_raw.replace(/^\/\//, '/').replace(/\s/, ' '); // Prepend the default command command_raw = '/msg ' + _kiwi.app.panels().active.get('name') + ' ' + command_raw; -- 2.25.1