[transport] use the regex used by elasticsearch-py
See 24b4885240/elasticsearch/transport.py (L12)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
var _ = require('./utils');
|
||||
var extractHostPartsRE = /\[\/*([^:]+):(\d+)\]/;
|
||||
var extractHostPartsRE = /^([\.:0-9a-f]*):([0-9]+)?$/;
|
||||
|
||||
function makeNodeParser(hostProp) {
|
||||
return function (nodes) {
|
||||
|
||||
Reference in New Issue
Block a user