Skip to content

Commit a92d944

Browse files
authored
fix(main): #120 escape backticks (#121)
fixed an issues where any text wrapped in `backticks` would be omitted from the message. Closes: #120
1 parent 6a4b388 commit a92d944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function build_commit_string(
502502
}
503503

504504
if (escape_quotes) {
505-
commit_string = commit_string.replaceAll('"', '\\"');
505+
commit_string = commit_string.replaceAll('"', '\\"').replaceAll("`", "\\`");
506506
}
507507

508508
return commit_string;

0 commit comments

Comments
 (0)