Skip to content

Commit

Permalink
Merge pull request #731 from FAlobaid/fixwinpaths
Browse files Browse the repository at this point in the history
Handling Windows paths with spaces in the REPL
  • Loading branch information
aviatesk authored Apr 15, 2020
2 parents 160fcb6 + ccaec23 commit 5d46cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { changeprompt, changemodule, fullpath } =

const isWindows = process.platform === 'win32'
const uriRegex = isWindows ?
/(@ ([^\s]+)\s(.*?)\:(\d+)|((([a-zA-Z]:|\.\.?|\~)|([^\0<>\?\|\/\s!$`&*()\[\]+'":;])+)?((\\|\/)([^\0<>\?\|\/\s!$`&*()\[\]+'":;])+)+)(\:\d+)?)/ :
/(@ ([^\s]+)\s(.*?)\:(\d+)|((([a-zA-Z]:|\.\.?|\~)|([^\0<>\?\|\/\s!$`&*()\[\]+'":;])+)?((\\|\/)([^\0<>\?\|\/!$`&*()\[\]+'":;])+)+\.[^\0<>\?\|\/\s!$`&*()\[\]+'":;]+)(\:\d+)?)/ :
/(@ ([^\s]+)\s(.*?)\:(\d+)|(((\.\.?|\~)|([^\0\s!$`&*()\[\]+'":;\\])+)?(\/([^\0\s!$`&*()\[\]+'":;\\])+)+)(\:\d+)?)/

var whitelistedKeybindingsREPL = []
Expand Down

0 comments on commit 5d46cc9

Please sign in to comment.