We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 741a1f0 commit c80c2b9Copy full SHA for c80c2b9
1 file changed
packages/common/src/utils/variables.ts
@@ -85,8 +85,7 @@ export function replaceVariables(
85
}: { modifier?: ((variable: unknown) => unknown) | undefined; trim?: boolean; keepTypeIfOnlyVariable?: boolean } = {}
86
): string | unknown {
87
const stringPhrase = typeof phrase === 'string' ? phrase : String(phrase ?? '');
88
-
89
- const formattedPhrase = trim ? stringPhrase.trim() : stringPhrase;
+ const formattedPhrase = trim ? stringPhrase.trim() : phrase;
90
91
if (!formattedPhrase) {
92
return '';
0 commit comments