mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
changes to support random ports for clusters and profiler.
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user