Skip to content

Commit dcac0f4

Browse files
committed
Minor update
Removed unnecessary escapes for quotes and extra parentheses for consistency.
1 parent c9b14dc commit dcac0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/runtime/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { changeprompt, changemodule, fullpath } =
1717

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

2323
var whitelistedKeybindingsREPL = []

0 commit comments

Comments
 (0)