gitmoji-cli
gitmoji-cli copied to clipboard
Using backtick (`) in commit message isn't valid
Hello @carloscuesta!
Issue: When attempting to use a backtick character (`) like how I would in markdown, gitmoji does not think it is a valid commit
OS: MacOS 12,4 (monterey) gitmoji -v: 5.0.2 Node version: v18.6.0 (Though I did install via homebrew)
Error Message: >> Enter a valid commit message

Hey! @dragid10
Backticks were removed in https://github.com/carloscuesta/gitmoji-cli/issues/52 as it was possible to inject code between them, I'm wondering if we can reconsider this so we can properly escape the commands instead of "banning" the character
Oh wow that actually makes perfect sense, I had no idea of the context. It'd definitely be nice to find some workaround in the future
Hey @dragid10 do you want to raise a PR to fix this?
Hey @dragid10 do you want to raise a PR to fix this?
I'm more than happy to take a stab at it
Hey! I tried to reproduce the injection of commands
using backticks in git and looks like I'm not able to reproduce it anymore.
I will remove the guard so backticks
can be used as part of the message and title again 🙏🏼