Fix issue where custom separator could be the same as a character in the prefix

This commit is contained in:
Alan Grainger
2026-10-20 09:28:04 +13:00
parent 94cfa9972b
commit fc7670157b
11 changed files with 36 additions and 35 deletions
+2
View File
@@ -202,6 +202,8 @@ describe('main', () => {
it('refuses an unknown flag or an unusable separator', async () => {
expect(await main(['--aply'])).toBe(2)
expect(await main(['--separator', '-'])).toBe(2)
expect(await main(['--separator', '_'])).toBe(2)
expect(errors[errors.length - 1]).toMatch(/with the prefix "ipp_upload_"/)
})
it('reads the separator from config, and exits 1 on an Immich error', async () => {