rogerdpack-arguments 0.4.7.7 → 0.4.7.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/arguments/vm.rb +1 -1
- metadata +1 -1
data/lib/arguments/vm.rb
CHANGED
@@ -7,6 +7,6 @@ module Arguments
|
|
7
7
|
return [] if str.match(/\*\w+/)
|
8
8
|
throw 'poor comma' + str if str =~ /,\W*&/
|
9
9
|
str.match(/def\s*\w+\s*\(?\s*([^)\n]*)/)[1] #This could look better
|
10
|
-
.scan(/(\w+)(?:\s*=\s*([^,]+))|(\w+)/).map{ |e| e.compact }
|
10
|
+
.scan(/(\w+)(?:\s*=\s*([^,]+))|(\w+)/).map{ |e| e.compact }.collect{|e2| e2[1].gsub!(/\W*\&.*/, '') if e2[1]; e2}
|
11
11
|
end
|
12
12
|
end
|