refactor: major package updates

This commit is contained in:
鲁树人 committed 2025-10-16 01:00:38 +09:00
1 parent 2e52c67533
commit a11caaae92
34 files changed
+373 -240

No files matched your search

+3 -1
View File
@@ -1,3 +1,5 @@
export function applyTemplate(tpl: string, values: Record<string, unknown>) {
return tpl.replace(/\{\{\s*(\w+)\s*\}\}/g, (_, key) => (Object.hasOwn(values, key) ? String(values[key]) : ''));
return tpl.replace(/\{\{\s*(\w+)\s*\}\}/g, (_, key: string) =>
Object.hasOwn(values, key) ? String(values[key]) : '',
);
}