summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorWild Kat <wk@users.noreply.github.com>2018-05-10 12:09:50 +0200
committerGitHub <noreply@github.com>2018-05-10 12:09:50 +0200
commit58c99b0fd9320eef4c73a0e25ea52eac87266fde (patch)
tree7de31103a6107a81aaa004ca149c703cf60e36cb /lib/oxidized/model
parent98dbb2a38274dd313f9ca80d5893e7c130cad61c (diff)
parenta5002bfdc2c34f8ababa67acb8e81bc91e7956c8 (diff)
Merge pull request #1339 from wk/wk-patch-1
relax asyncos prompt requirements (closes #1272)
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/asyncos.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/asyncos.rb b/lib/oxidized/model/asyncos.rb
index 2857ef8..9e4d10e 100644
--- a/lib/oxidized/model/asyncos.rb
+++ b/lib/oxidized/model/asyncos.rb
@@ -1,6 +1,6 @@
class AsyncOS < Oxidized::Model
- # ESA prompt "(mail.example.com)> "
- prompt /^\r*([(][\w. ]+[)][#>]\s+)$/
+ # ESA prompt "(mail.example.com)> " or "mail.example.com> "
+ prompt /^\r*([(]?[\w. ]+[)]?[#>]\s+)$/
comment '! '
# Select passphrase display option