summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-08-28 23:15:16 +0300
committerGitHub <noreply@github.com>2016-08-28 23:15:16 +0300
commit6332dedddc75e0c44fe2fd19994b5080a7818cd1 (patch)
tree6f9e93200a53e70d2a89d26f9e56b0adb9df7761
parenta061b7c1a5fa5b43a3ec8d80acf51cde8cfb6c41 (diff)
parent9f4cd0105e6cd8a39771d3340e14b7cfca5440e2 (diff)
Merge pull request #545 from MajesticFalcon/master
Add more extensive pattern matching
-rw-r--r--lib/oxidized/model/routeros.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/routeros.rb b/lib/oxidized/model/routeros.rb
index 4822500..fc96512 100644
--- a/lib/oxidized/model/routeros.rb
+++ b/lib/oxidized/model/routeros.rb
@@ -1,5 +1,5 @@
class RouterOS < Oxidized::Model
- prompt /\[\w+@\S+\]\s?>\s?$/
+ prompt /\[\w+@\S+(\s?\S+)*\]\s?>\s?$/
comment "# "
cmd '/system routerboard print' do |cfg|