changes to support random ports for clusters and profiler.

This commit is contained in:
Peter Miron
2017-06-10 10:35:01 -04:00
parent 70778e9ec5
commit d1f38f38a2
13 changed files with 344 additions and 195 deletions

View File

@@ -140,7 +140,7 @@ func (p *parser) processItem(it item) error {
case itemInteger:
lastDigit := 0
for _, r := range it.val {
if !unicode.IsDigit(r) {
if !unicode.IsDigit(r) && r != '-' {
break
}
lastDigit++