mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
docs: Apparently some web servers don't like % characters in filepaths. Wierd!
This commit is contained in:
parent
6eaa3799d3
commit
2aa15116e2
@ -62,7 +62,8 @@ async function srcset(source_image, target_dir, urlpath, format = "__AUTO__", si
|
||||
debug(`SOURCE_SIZE`, source_size, `TARGET_FORMAT`, target_format);
|
||||
|
||||
let setitems = await Promise.all(sizes.map(async (size) => {
|
||||
let target_filename = `${source_parsed.name}_${size}.${target_format}`;
|
||||
let target_filename = `${source_parsed.name}_${size}.${target_format}`
|
||||
.replace(/%/, "pcent");
|
||||
let target_current = path.join(
|
||||
target_dir,
|
||||
target_filename
|
||||
|
Loading…
Reference in New Issue
Block a user