Updated to use "reject!" instead of "select!" so older versions of ruby are happy
parent
6591bd3a45
commit
d0fb9424b2
|
@ -83,8 +83,8 @@ class WinConstManager
|
|||
|
||||
# Filter matches by name if a filter has been provided
|
||||
unless filter_regex.nil?
|
||||
matches.select! do |name|
|
||||
name =~ filter_regex
|
||||
matches.reject! do |name|
|
||||
name !~ filter_regex
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue