Skip to content

Commit

Permalink
Added IPv6 support for servers, added support for unaffiliated/servic…
Browse files Browse the repository at this point in the history
…e as a server. Searches for required whitespace, if not assume that the server is at the end of the line.
  • Loading branch information
Xoin committed Feb 6, 2015
1 parent 70ffc55 commit 5328d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Parser.prototype._transform = function _transform(input, encoding, done) {

var RE_NICK = /^([a-z][a-z0-9\-\[\]\\`^\{\}_]*)(?: |!|@)/i,
RE_USER = /^([^ \r\n@]+)/,
RE_SERVER = /^((?:[a-z0-9][a-z0-9-]*\.)*(?:[a-z][a-z0-9-]*))/i,
RE_SERVER = /((?:[a-z0-9][a-z0-9-]*[.|:|\/])*(?:[a-z0-9][a-z0-9-]*(?=\s|$)))/i,
RE_COMMAND = /^(\d{3}|[A-Z]+)/;

Parser.prototype.parse = function parse(text, state) {
Expand Down

0 comments on commit 5328d41

Please sign in to comment.