We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd10e5 commit b0f0f07Copy full SHA for b0f0f07
.changeset/perfect-rockets-agree.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tidaltheory/lens': patch
3
4
+
5
+Fix ModifyDate if filenames include characters after the timestamp
src/cli.ts
@@ -238,6 +238,9 @@ prog.command('jpg <src>')
238
let sharpImage = sharp(source)
239
spinner.text = 'Converting to JPG...'
240
241
+ // Remove any non-digit characters from the end of the filename.
242
+ name = name.replace(/\D*$/, '')
243
244
let dt = name.slice(-14)
245
let d = dt.slice(0, 8)
246
let t = dt.slice(8)
0 commit comments