1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: gen_vc escape double quotes in sibject

This commit is contained in:
Joe Conigliaro 2020-03-21 10:54:57 +11:00
parent b4561fa814
commit 7e139b5384

View File

@ -268,7 +268,7 @@ fn (gen_vc mut GenVC) generate() {
last_commit_hash_v_short := last_commit_hash_v[..7]
// subject
last_commit_subject := git_log_v.find_between('Subject:', '\n').trim_space()
last_commit_subject := git_log_v.find_between('Subject:', '\n').trim_space().replace('"', '\\"')
// log some info
gen_vc.logger.debug('last commit time ($git_repo_v): ' + last_commit_time_v.format_ss())