feat: Add setting to replace underscores with spaces in tag insertion (#39)

This commit is contained in:
newtextdoc1111
2025-10-24 06:16:11 +09:00
parent ab941ab329
commit aca0ed6326
6 changed files with 75 additions and 2 deletions
+2 -2
View File
@@ -232,8 +232,8 @@ export function normalizeTagToInsert(str) {
if (isContainsLetterOrNumber(str)) {
const isWildcardCall = str.startsWith('__') && str.endsWith('__') && str.length > 4;
if (!isWildcardCall) {
// If doesn't wildcard call, replace underscores with spaces
if (!isWildcardCall && settingValues.replaceUnderscoreWithSpace) {
// If doesn't wildcard call and setting is enabled, replace underscores with spaces
return escapeParentheses(str.replace(/_/g, " "));
}
}