macaddr 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/macaddr.rb +1 -1
- metadata +1 -1
data/lib/macaddr.rb
CHANGED
@@ -18,7 +18,7 @@ module Mac
|
|
18
18
|
|
19
19
|
candidates = lines.select{|line| line =~ re}
|
20
20
|
raise 'no mac address candidates' unless candidates.first
|
21
|
-
candidates.map!{|c| c[re]}
|
21
|
+
candidates.map!{|c| c[re].strip}
|
22
22
|
|
23
23
|
maddr = candidates.first
|
24
24
|
raise 'no mac address found' unless maddr
|