net-telnet
net-telnet copied to clipboard
waitfor doesn't accept regex expression with string option !
I wonder to know why the prompt with string option is write with Regexp.quote(options["String"])
? It is impossible to give a regex to control the end of waitfor.
This might be correct if the "String" option was treated as a regular expression like this: Regexp.new( options["String"] )
. Just remove the Regexp.quote().
I am right ? Is there other solution to control the prompt with a regex ?