mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-02-25 12:33:45 +01:00
docs: Apparently some web servers don't like % characters in filepaths. Wierd!
This commit is contained in:
@ -62,7 +62,8 @@ async function srcset(source_image, target_dir, urlpath, format = "__AUTO__", si
|
|||||||
debug(`SOURCE_SIZE`, source_size, `TARGET_FORMAT`, target_format);
|
debug(`SOURCE_SIZE`, source_size, `TARGET_FORMAT`, target_format);
|
||||||
|
|
||||||
let setitems = await Promise.all(sizes.map(async (size) => {
|
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(
|
let target_current = path.join(
|
||||||
target_dir,
|
target_dir,
|
||||||
target_filename
|
target_filename
|
||||||
|
Reference in New Issue
Block a user