Adjust input normalization

pull/4624/head
awsr 2026-02-05 15:55:18 -08:00
parent 137504de36
commit 6d30df7ed6
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -391,8 +391,8 @@ class GalleryFile extends HTMLElement {
this.folder = folder;
this.name = file;
this.#signal = signal;
this.src = `${this.folder}/${this.name}`;
this.fullFolder = this.src.replace(/\/+/g, '/').replace(/\/[^/]+$/, '');
this.src = `${this.folder}/${this.name}`.replace(/\/+/g, '/'); // Ensure no //, ///, etc...
this.fullFolder = this.src.replace(/\/[^/]+$/, '');
this.size = 0;
this.mtime = 0;
this.hash = undefined;