diff options
author | ytti <saku@ytti.fi> | 2015-10-20 16:10:46 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-10-20 16:10:46 +0300 |
commit | 12c0c34928a2273d8ede99f63055dab19893328a (patch) | |
tree | f3ffb29d4ea49057ff334dd3437684c198cf85f4 /lib/oxidized/model/comware.rb | |
parent | add76210cc4acbb3632d0751d4841c4f69853e1a (diff) | |
parent | 4311ac0841a82997707ae469d6a46363ddb06ca1 (diff) |
Merge pull request #216 from nickhilliard/bf-comware-nul-prompt
sometimes the comware prompt might have a leading nul char
Diffstat (limited to 'lib/oxidized/model/comware.rb')
-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..9b36e8b 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 |