Describe the bug
Upon using a custom tagger defined with the YAML format, I noticed that if you use placeholders as defaults that are the same value as the key name, changing the value also overrides the key name. It appears that the find/replace logic is too loose.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug Upon using a custom tagger defined with the YAML format, I noticed that if you use placeholders as defaults that are the same value as the key name, changing the value also overrides the key name. It appears that the find/replace logic is too loose.
To Reproduce
yor tag --config-file custom_tagger.yaml --skip-tags 'yor_trace,git*' -d .
yor tag --config-file custom_tagger.yaml --skip-tags 'yor_trace,git*' -d .
Expected behavior Only the values for the tags should have been overwritten, not the keys:
Screenshots The CLI output seems correct, only the value should have been updated, the tag key should have been unchanged.
Desktop (please complete the following information):