Fixed issue #440 - broken multi hyphen options in param file.

This commit is contained in:
Thorsten Eckel 2016-11-05 00:14:34 +01:00
parent eaf7cd9447
commit 56f91cc8f4

View File

@ -62,7 +62,7 @@ module GitHubChangelogGenerator
# @return [Array<Symbol, String>]
def extract_pair(line)
key, value = line.split("=", 2)
[key.sub("-", "_").to_sym, value.gsub(/[\n\r]+/, "")]
[key.tr("-", "_").to_sym, value.gsub(/[\n\r]+/, "")]
end
KNOWN_ARRAY_KEYS = [:exclude_labels, :include_labels, :bug_labels,