summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorrivo nurges <rivo@surfar.ee>2015-04-21 18:23:07 +0000
committerrivo nurges <rivo@surfar.ee>2015-04-21 18:23:07 +0000
commit57257c93db875d9874fdf776e5fae7629ce5c7cd (patch)
treec01aa8f5dff07eba7b27341802a245510212eca8 /lib/oxidized/model
parentd1ea68e25624fb0a887a741fef49b6d91078b196 (diff)
Fix screenos prompt regex
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/screenos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/screenos.rb b/lib/oxidized/model/screenos.rb
index 922f401..57c7c2f 100644
--- a/lib/oxidized/model/screenos.rb
+++ b/lib/oxidized/model/screenos.rb
@@ -4,7 +4,7 @@ class ScreenOS < Oxidized::Model
comment '! '
- prompt '/^([\w.-\(\)]+->\s?)$/'
+ prompt /^[\w.\(\)-]+->\s?$/
cmd :all do |cfg|
cfg.each_line.to_a[2..-2].join