Skip to content

Commit a3e39f4

Browse files
committed
Using lodash .trimRight() for IE support
1 parent 1cc8892 commit a3e39f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/irclineparser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
var _ = require('lodash');
2+
13
module.exports = parseIrcLine;
4+
25
/**
36
* The regex that parses a line of data from the IRCd
47
* Deviates from the RFC a little to support the '/' character now used in some
@@ -42,7 +45,7 @@ function parseIrcLine(line) {
4245

4346
// Add the trailing param to the params list
4447
if (typeof msg[8] !== 'undefined') {
45-
msg_obj.params.push(msg[8].trimRight());
48+
msg_obj.params.push(_.trimRight(msg[8]));
4649
}
4750

4851
return msg_obj;

0 commit comments

Comments
 (0)