macaddr 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|