This commit is contained in:
Petr Korolev 2015-05-22 13:37:06 +03:00
parent 944adc92cd
commit 536b39c961

View File

@ -28,6 +28,10 @@ module GitHubChangelogGenerator
title_with_number
end
# Encapsulate characters to make markdown look as expected.
#
# @param [String] string
# @return [String] encapsulated input string
def encapsulate_string(string)
string.gsub! '\\', '\\\\'