diff options
author | lassulus <lassulus@googlemail.com> | 2013-11-12 02:59:28 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-11-12 02:59:28 +0100 |
commit | 721b4fb1b32ee47f158fb3b9a1ad0747ff579044 (patch) | |
tree | 8ba76f01ae92a1439df5607517313e20cda5d2dc /webchat/public/functions.js | |
parent | a170673b55215137b5e7fe19e587767c2ef57453 (diff) |
webchat: remove input parser
Diffstat (limited to 'webchat/public/functions.js')
-rw-r--r-- | webchat/public/functions.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/webchat/public/functions.js b/webchat/public/functions.js index 781fafce..318d0865 100644 --- a/webchat/public/functions.js +++ b/webchat/public/functions.js @@ -1,11 +1,3 @@ -function inputParser (str) { - var match = /^\/([a-z]+)(?:\s+(.*\S))?\s*$/.exec(str) - if (match) { - return { method: match[1], params: match[2] } - } else { - return { method: 'msg', params: str } - } -} function replaceURLWithHTMLLinks (text) { var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; |