Permalink
Browse files

Added comment to remind myself to mess with JS regexs more.

  • Loading branch information...
1 parent cef6e5c commit 0983e2247ca6cf4a7cc889f2cba60b60d6d5918d @sent1nel committed Jun 23, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -99,6 +99,7 @@ zIRCClient.prototype.on_data = function (data) {
}
zIRCClient.prototype.parse_message = function (msg) {
+ // JavaScript, why don't you do regex grouping good?!
prefix = msg.substring(1, msg.indexOf(" ") - 1);
message = msg.substring(msg.indexOf(" :") + 2);
command = msg.substring(msg.indexOf(" ") + 1, msg.indexOf(" :"));

0 comments on commit 0983e22

Please sign in to comment.