Tankōbon / shared/file-name-template / fillFileNameTemplate
Function: fillFileNameTemplate()
fillFileNameTemplate(
template,values):string
Defined in: shared/file-name-template.ts:56
template with each field replaced by its value: {series} - T{volume} - {title} gives Tintin - T20 - Tintin au Tibet, and T{volume:2} gives T07 for the volume 7. The result isn't made safe for the file system: the caller does it.
Parameters
template
string
values
Record<FileNameField, string>
Returns
string