Skip to content

Commit f919184

Browse files
author
Boris
committed
Fix regex for gettin indices
1 parent 11285b9 commit f919184

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/router/methods.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (rt *Router) getNodes() ([]singleNode, error) {
220220
func (rt *Router) getIndexGroups(cluster string) ([]indexGroup, error) {
221221
var igs, igresp []indexGroup
222222
var host string
223-
re := regexp.MustCompile(`^([\w\d\-_]+)-(\d{4}\.\d{2}\.\d{2}(-\d{2})*)`)
223+
re := regexp.MustCompile(`^([\w\d\-_\.]+)-(\d{4}\.\d{2}\.\d{2}(-\d{2})*)`)
224224

225225
// rt.nodes.RLock()
226226
// defer rt.nodes.RUnlock()

modules/version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
package version
1515

16-
var Version = "extractor/v0.2.12"
16+
var Version = "extractor/v0.2.13"

0 commit comments

Comments
 (0)