Skip to content

Commit

Permalink
Fix bug on names containing quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
OrkoHunter committed Mar 27, 2017
1 parent fac34aa commit 92bc896
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/js/dataio.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ function play_file(loc) {
var platform = os.platform()
// Escape characters
loc = loc.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")
loc = loc.replace("\'", "\\'")
loc = loc.replace('\"', '\\"')
if (platform == 'darwin') {
console.log('Its macos')
exec_shell('open ' + loc)
Expand Down

0 comments on commit 92bc896

Please sign in to comment.