add < to encaprulated characters. fix #249
This commit is contained in:
parent
f527cfff67
commit
6c6116381b
|
@ -41,7 +41,7 @@ module GitHubChangelogGenerator
|
||||||
def encapsulate_string(string)
|
def encapsulate_string(string)
|
||||||
string.gsub! '\\', '\\\\'
|
string.gsub! '\\', '\\\\'
|
||||||
|
|
||||||
encpas_chars = %w(> * _ \( \) [ ] #)
|
encpas_chars = %w(< > * _ \( \) [ ] #)
|
||||||
encpas_chars.each do |char|
|
encpas_chars.each do |char|
|
||||||
string.gsub! char, "\\#{char}"
|
string.gsub! char, "\\#{char}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user