파일명 포맷에 접미사 기능 추가
This commit is contained in:
@@ -146,11 +146,10 @@ initKeyboardShortcuts({
|
||||
|
||||
// ── 포맷 미리보기 ─────────────────────────────────
|
||||
function updatePreview() {
|
||||
const prefix = inputPrefix.value.trim() || 'photo';
|
||||
const prefix = inputPrefix.value.trim() || 'photo_';
|
||||
const digits = clampDigits(inputDigits.value);
|
||||
const postfix = inputPostfix.value.trim();
|
||||
const ext = state.files.length ? getExtension(state.files[0].name) : 'jpg';
|
||||
const suffix = postfix ? `_${postfix}` : '';
|
||||
previewName.textContent = `${prefix}_${'1'.padStart(digits, '0')}${suffix}.${ext}`;
|
||||
previewName.textContent = `${prefix}${'1'.padStart(digits, '0')}${postfix}.${ext}`;
|
||||
updateNewNameLabels();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user