diff options
author | Nick Hilliard <nick@foobar.org> | 2015-10-11 23:36:59 +0100 |
---|---|---|
committer | Nick Hilliard <nick@foobar.org> | 2015-10-11 23:36:59 +0100 |
commit | 348dd2e978159f35d374a8a3bcb96c14cf77aaae (patch) | |
tree | 22ace8262aa2e1ac4fb3422520f44fa96f218579 /lib/oxidized/model | |
parent | 8a5cf58297caabb2335dde98adf9f7307432b92e (diff) |
sometimes the comware prompt might have a leading nul char
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/comware.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/comware.rb b/lib/oxidized/model/comware.rb index aa98ccb..dcab14e 100644 --- a/lib/oxidized/model/comware.rb +++ b/lib/oxidized/model/comware.rb @@ -1,7 +1,8 @@ class Comware < Oxidized::Model # HP (A-series)/H3C/3Com Comware - prompt /^(<[\w.-]+>)$/ + # sometimes the prompt might have a leading nul + prompt /^(\0)*(<[\w.-]+>)$/ comment '# ' # example how to handle pager |