mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
docs: Apparently some web servers don't like % characters in filepaths. Wierd!
This commit is contained in:
parent
6eaa3799d3
commit
2aa15116e2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue