We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5ba6a commit 67ca148Copy full SHA for 67ca148
src/helpers.ts
@@ -29,11 +29,11 @@ export function bind<T extends Function>(
29
export function getFormattedFields(fields: Array<string> = []) {
30
return fields
31
.map(field => {
32
- const subfield = field.split('%');
+ const subfields = field.split('%');
33
return (
34
- subfield
+ subfields
35
.map(subField => nameMap[subField] || subField)
36
- .join('{') + '}'.repeat(subfield.length - 1)
+ .join('{') + '}'.repeat(subfields.length - 1)
37
);
38
})
39
.join(' ');
0 commit comments