netfishers-onl / Netshot

Network Configuration and Compliance Management
http://www.netfishers.onl/netshot
246 stars 59 forks source link

NXOS driver does not allow colored prompt #3

Closed AlainMoretti closed 7 years ago

AlainMoretti commented 7 years ago

NXOS driver does not work when colored prompt is used because the prompt regex does not match special characters.

Maybe line 128 of Cisco_NX-OS.js should be : prompt: /([A-Za-z-_0-9.]+#) /, instead of : prompt: /^([A-Za-z-_0-9.]+#) $/,

Regex max match rule should keep whole hostname inside brackets.

SCadilhac commented 7 years ago

Thanks for the comment.