From b3b50f7273d590c4a98fd1f323073a03a4cf7226 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Wed, 4 Jan 2012 13:03:44 -0500 Subject: [PATCH] changes --- lib/mongo/util/uri_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/util/uri_parser.rb b/lib/mongo/util/uri_parser.rb index c5a43bd..51a1602 100644 --- a/lib/mongo/util/uri_parser.rb +++ b/lib/mongo/util/uri_parser.rb @@ -27,7 +27,7 @@ module Mongo HOST_REGEX = /(?[-.\w]+)/ PORT_REGEX = /(?::(?\w+))?/ - NODE_REGEX = /((?#{HOST_REGEX}#{PORT_REGEX},?)+)/ + NODE_REGEX = /(?(#{HOST_REGEX}#{PORT_REGEX},?)+)/ PATH_REGEX = /(?:\/(?[-\w]+))?/