fix: update unix timestamp to milliseconds in copyFiles feature

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ
2025-01-29 15:35:33 +09:00
parent 3250a26dfe
commit f07edc3dbe
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ function resolveCopyDestinationSetting(documentUri: vscode.Uri, fileName: string
// File
['fileName', fileName], // The file name of the dropped file, e.g. `image.png`.
['fileExtName', path.extname(fileName).replace('.', '')], // The extension of the dropped file, e.g. `png`.
['unixTime', Math.floor(Date.now() / 1000).toString()], // The current Unix timestamp in seconds.
['unixTime', Date.now().toString()], // The current Unix timestamp in milliseconds.
]);
return outDest.replaceAll(/(?<escape>\\\$)|(?<!\\)\$\{(?<name>\w+)(?:\/(?<pattern>(?:\\\/|[^\}\/])+)\/(?<replacement>(?:\\\/|[^\}\/])*)\/)?\}/g, (match, _escape, name, pattern, replacement, _offset, _str, groups) => {