Skip to content

Commit

Permalink
Prefer replaceAll over replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeabyte authored Oct 2, 2024
1 parent 14b9a0d commit ce443a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/playlist-info/playlist-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export default defineComponent({

handlePlaylistExport: async function () {
const dateStr = getTodayDateStrLocalTimezone()
const title = this.selectedUserPlaylist.playlistName.replaceAll(' ', '_').replace(/["%*/:<>?\\|]/g, '_')
const title = this.selectedUserPlaylist.playlistName.replaceAll(' ', '_').replaceAll(/["%*/:<>?\\|]/g, '_')
const exportFileName = 'freetube-playlist-' + title + '-' + dateStr + '.db'

const options = {
Expand Down

0 comments on commit ce443a8

Please sign in to comment.