1
0
Fork 0
Browse Source

vault backup: 2022-08-02 10:37:56

master
YuJian 2 years ago
parent
commit
1f88707fb8
  1. 2
      随时随地/Nodejs 文件系统(path)学习笔记.md

2
随时随地/Nodejs 文件系统(path)学习笔记.md

@ -267,7 +267,7 @@ const changeFilenameExtension = (pathStr, newExtension) => { @@ -267,7 +267,7 @@ const changeFilenameExtension = (pathStr, newExtension) => {
const parts = path.parse(pathStr);
return path.format({
...parts,
// prevent .base from overriding .name and .ext
// 防止 base 重写 name 和 ext
base: undefined,
ext: newExtension,
});

Loading…
Cancel
Save