Merge pull request #298 from olleolleolle/refactor/reader-positive-boolean
[refactor] Reader: positive Boolean; unused #map
This commit is contained in:
commit
645f96ace6
|
@ -53,10 +53,10 @@ module GitHubChangelogGenerator
|
||||||
|
|
||||||
@heading_structures.each do |regexp|
|
@heading_structures.each do |regexp|
|
||||||
matches = Regexp.new(regexp).match(heading)
|
matches = Regexp.new(regexp).match(heading)
|
||||||
captures.merge!(Hash[matches.names.map.zip(matches.captures)]) unless matches.nil?
|
if matches
|
||||||
|
captures.merge!(Hash[matches.names.zip(matches.captures)])
|
||||||
# Try Regular Expressions until you find one that delivers results
|
break
|
||||||
break unless matches.nil?
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
captures
|
captures
|
||||||
|
|
Loading…
Reference in New Issue
Block a user