summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/oxidized/model/comware.rb3
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