Permalink
Browse files

Remove superfluous '+' in regexp (fixes 1.8 support, ruby 1.9 optimiz…

…ed it away)
  • Loading branch information...
1 parent 5ddb6e6 commit f8fb938079218535a76026d3d4132a1f1904b4af @glaville committed Jul 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 topology.rb
View
@@ -52,7 +52,7 @@
SW_RE = /^Switch\s+\w+\s+(.*)\:$/
# Link information line format
-LINE_RE = /^\s+(\d+)\s+(\d+)\W+==[^=]+\s(\d+\.\d+|undefined)[^=]++==>\s+(\d+)\s+(\d+).*"([^"]+)"/
+LINE_RE = /^\s+(\d+)\s+(\d+)\W+==[^=]+\s(\d+\.\d+|undefined)[^=]+==>\s+(\d+)\s+(\d+).*"([^"]+)"/
# Store informations associated to an IB Link
class Link < Struct.new(:sw_id, :sw_port, :sw_name, :peer_id,

0 comments on commit f8fb938

Please sign in to comment.