From 7319b49df603cd1722e27be487e899eb14787317 Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 16 Nov 2015 14:53:13 -0600 Subject: [PATCH] [transport] use the regex used by elasticsearch-py See https://github.com/elastic/elasticsearch-py/blob/24b48852403ae3dd98b714f1914dd423c2c8ad68/elasticsearch/transport.py#L12 --- src/lib/nodes_to_host.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/nodes_to_host.js b/src/lib/nodes_to_host.js index d6a6226e9..abcb48e79 100644 --- a/src/lib/nodes_to_host.js +++ b/src/lib/nodes_to_host.js @@ -1,5 +1,5 @@ var _ = require('./utils'); -var extractHostPartsRE = /\[\/*([^:]+):(\d+)\]/; +var extractHostPartsRE = /^([\.:0-9a-f]*):([0-9]+)?$/; function makeNodeParser(hostProp) { return function (nodes) {