Allowing underscores within client hosts
authorDarren <darren@darrenwhitlen.com>
Wed, 28 Nov 2012 18:48:32 +0000 (18:48 +0000)
committerDarren <darren@darrenwhitlen.com>
Wed, 28 Nov 2012 18:48:32 +0000 (18:48 +0000)
server/irc/connection.js

index 887903d2e73a90e52a8a35e0de924d695e8c13de..7bf86a0812458fee3800f9952f2c38d7726d1bf6 100644 (file)
@@ -143,7 +143,7 @@ function findWebIrc(connect_data) {
 
 
 
-parse_regex = /^(?:(?:(?:(@[^ ]+) )?):(?:([a-z0-9\x5B-\x60\x7B-\x7D\.\-]+)|([a-z0-9\x5B-\x60\x7B-\x7D\.\-]+)!([a-z0-9~\.\-_|]+)@?([a-z0-9\.\-:\/]+)?) )?(\S+)(?: (?!:)(.+?))?(?: :(.+))?$/i;
+parse_regex = /^(?:(?:(?:(@[^ ]+) )?):(?:([a-z0-9\x5B-\x60\x7B-\x7D\.\-]+)|([a-z0-9\x5B-\x60\x7B-\x7D\.\-]+)!([a-z0-9~\.\-_|]+)@?([a-z0-9\.\-:\/_]+)?) )?(\S+)(?: (?!:)(.+?))?(?: :(.+))?$/i;
 var parse = function (data) {
     var i,
         msg,