feat: support dashes in username (#18)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Egor Zaitsev 2020-12-24 14:46:05 +03:00 committed by GitHub
parent b322351c11
commit 389924be6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
minor_changes:
- command - added support for a dash (``-``) in username (https://github.com/ansible-collections/community.routeros/pull/18).
- facts - added support for a dash (``-``) in username (https://github.com/ansible-collections/community.routeros/pull/18).

View file

@ -47,7 +47,7 @@ class TerminalModule(TerminalBase):
terminal_stdout_re = [ terminal_stdout_re = [
re.compile(br"\x1b<"), re.compile(br"\x1b<"),
re.compile(br"\[[\w\.]+\@[\w\s\-\.\/]+\] ?> ?$"), re.compile(br"\[[\w\-\.]+\@[\w\s\-\.\/]+\] ?> ?$"),
re.compile(br"Please press \"Enter\" to continue!"), re.compile(br"Please press \"Enter\" to continue!"),
re.compile(br"Do you want to see the software license\? \[Y\/n\]: ?"), re.compile(br"Do you want to see the software license\? \[Y\/n\]: ?"),
] ]