Merge pull request #441 from thorsteneckel/bugfix-params_file_multi_hyphen

Fixed issue #440 - broken multi hyphen options in param file.
This commit is contained in:
Olle Jonsson 2016-11-05 08:49:35 +01:00 committed by GitHub
commit fef7a5d02f

View File

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