From 6c6116381b390e6a2aa87e5c59d576170fd25e0b Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Fri, 12 Jun 2015 09:17:00 +0300 Subject: [PATCH] add < to encaprulated characters. fix #249 --- lib/github_changelog_generator/generator/generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/generator/generator.rb b/lib/github_changelog_generator/generator/generator.rb index e6b4e6f..61e6061 100644 --- a/lib/github_changelog_generator/generator/generator.rb +++ b/lib/github_changelog_generator/generator/generator.rb @@ -41,7 +41,7 @@ module GitHubChangelogGenerator def encapsulate_string(string) string.gsub! '\\', '\\\\' - encpas_chars = %w(> * _ \( \) [ ] #) + encpas_chars = %w(< > * _ \( \) [ ] #) encpas_chars.each do |char| string.gsub! char, "\\#{char}" end