Commit 38a09e1
authored
fix: _readyCheck INFO parser's handling of colon characters (#1127)
This commit fixes an issue which would occur when encountering INFO
response field values containing the colon character.
Because the parser logic splits entire lines upon colon character
delimiters and took only the first component as the field name, and
second component as the field value, any line containing multiple
colons would ultimately lead to an incorrectly truncated field value.
For example:
"config_file:Y:\\redis\\redis.conf"
Would be split into:
["config_file", "Y", "\\redis\\redis.conf"]
Leading to a field name of "config_file" and an incorrect field value
of "Y".
The resolution is simply to handle additional field value components as
needed, joining them together appropriately.1 parent 1d4330d commit 38a09e1
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
512 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
513 | 514 | | |
514 | 515 | | |
515 | 516 | | |
| |||
0 commit comments