Skip to content

Commit 1a29afe

Browse files
committed
Strict matching
1 parent 1c8e8f4 commit 1a29afe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/core/src/formatters

packages/core/src/formatters/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ export abstract class BaseFormatter {
903903
args.push(match[1] ?? match[2] ?? '');
904904
}
905905

906-
if (args.length === 0) return variable;
906+
if (args.length === 0) return undefined;
907907

908908
let result = variable;
909909
for (const arg of args) {
@@ -968,7 +968,7 @@ export abstract class BaseFormatter {
968968
args.push(match[1] ?? match[2] ?? '');
969969
}
970970

971-
if (args.length === 0) return variable;
971+
if (args.length === 0) return undefined;
972972

973973
return variable.filter((v) => !args.includes(v));
974974
}

0 commit comments

Comments
 (0)