diff --git a/lib/github_changelog_generator/parser_file.rb b/lib/github_changelog_generator/parser_file.rb index 9309a7a..83d5565 100644 --- a/lib/github_changelog_generator/parser_file.rb +++ b/lib/github_changelog_generator/parser_file.rb @@ -62,7 +62,7 @@ module GitHubChangelogGenerator # @return [Array] 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,