We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc8892 commit a3e39f4Copy full SHA for a3e39f4
src/irclineparser.js
@@ -1,4 +1,7 @@
1
+var _ = require('lodash');
2
+
3
module.exports = parseIrcLine;
4
5
/**
6
* The regex that parses a line of data from the IRCd
7
* Deviates from the RFC a little to support the '/' character now used in some
@@ -42,7 +45,7 @@ function parseIrcLine(line) {
42
45
43
46
// Add the trailing param to the params list
44
47
if (typeof msg[8] !== 'undefined') {
- msg_obj.params.push(msg[8].trimRight());
48
+ msg_obj.params.push(_.trimRight(msg[8]));
49
}
50
51
return msg_obj;
0 commit comments