Skip to content

Commit 54ba4dd

Browse files
committed
style: ♻️ clean up some formatting
1 parent 5c0da6b commit 54ba4dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,10 @@ export default class ReadwiseMirror extends Plugin {
377377
lowercase: this.settings.slugifyLowercase,
378378
})
379379
: // ... else filenamify the title
380-
`${filenamify(title.replace(/:/g, this.settings.colonSubstitute ?? '-'), {
380+
filenamify(title.replace(/:/g, this.settings.colonSubstitute ?? '-'), {
381381
replacement: ' ',
382382
maxLength: 255,
383-
})}` // Ensure we remove additional critical characters, replace multiple spaces with one, and trim
383+
}) // Ensure we remove additional critical characters, replace multiple spaces with one, and trim
384384
.replace(/[<>"'\/\\|?*#]+/g, '')
385385
.replace(/ +/g, ' ')
386386
.trim();

0 commit comments

Comments
 (0)