fix
This commit is contained in:
parent
cf0bb5832b
commit
f30684f28b
|
@ -158,7 +158,7 @@ func (c *TelnetClient) ReadUntil(waitfor string) (string, error) {
|
|||
if paged {
|
||||
paged = false
|
||||
// only spaces without any other chars, \n at the end
|
||||
if match, err := regexp.Match(`(?msi:[\s^\n]+$)`, lastLine.Bytes()); match && err == nil {
|
||||
if match, err := regexp.Match(`(?msi:^[\s^\n]+$)`, lastLine.Bytes()); match && err == nil {
|
||||
lastLine.Reset()
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue