net-telnet icon indicating copy to clipboard operation
net-telnet copied to clipboard

waitfor doesn't accept regex expression with string option !

Open pommechocolat opened this issue 2 years ago • 0 comments

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 ?

pommechocolat avatar Jan 26 '23 08:01 pommechocolat