[transport] use the regex used by elasticsearch-py

See 24b4885240/elasticsearch/transport.py (L12)
This commit is contained in:
spalger
2015-11-16 14:53:13 -06:00
parent 4b7cd3d92f
commit 7319b49df6

View File

@ -1,5 +1,5 @@
var _ = require('./utils');
var extractHostPartsRE = /\[\/*([^:]+):(\d+)\]/;
var extractHostPartsRE = /^([\.:0-9a-f]*):([0-9]+)?$/;
function makeNodeParser(hostProp) {
return function (nodes) {