You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you @mcfarljw for creating this nice plugin!
I encountered an issue regarding the default mappings (date and timestamp). I've set replacePrefix and replaceSuffix to empty strings in my config, and I then found that all occurrences of the words date and timestamp were being replaced in my files – rather unexpected!
A workaround is for the user to set date and timestamp to null in their config:
Interesting, I'd never really considered using it without a prefix and suffix because that seemed a bit risky in terms of unexpected behavior, but I suppose if you're replacing in a 3rd party library then it might not be possible.
I could have it disable the default mappings when the prefix and suffix are set to falsey or empty string values.
Thank you @mcfarljw for creating this nice plugin!
I encountered an issue regarding the default mappings (
date
andtimestamp
). I've setreplacePrefix
andreplaceSuffix
to empty strings in my config, and I then found that all occurrences of the wordsdate
andtimestamp
were being replaced in my files – rather unexpected!A workaround is for the user to set
date
andtimestamp
tonull
in their config:But couldn't the default mappings just be removed from the plugin? Is there a reason why the plugin has these default mappings?
The text was updated successfully, but these errors were encountered: