summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-04-21 21:26:16 +0300
committerytti <saku@ytti.fi>2015-04-21 21:26:16 +0300
commit063254e4389fed56b539b4d29d31b1e69509e234 (patch)
treec01aa8f5dff07eba7b27341802a245510212eca8 /lib/oxidized/model
parentd1ea68e25624fb0a887a741fef49b6d91078b196 (diff)
parent57257c93db875d9874fdf776e5fae7629ce5c7cd (diff)
Merge pull request #109 from rixxxx/working-screenos
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