We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8f6cb commit 3bd9b4bCopy full SHA for 3bd9b4b
1 file changed
source-map-support.js
@@ -64,7 +64,7 @@ var retrieveFile = handlerExec(retrieveFileHandlers);
64
retrieveFileHandlers.push(function(path) {
65
// Trim the path to make sure there is no extra whitespace.
66
path = path.trim();
67
- if (path.startsWith('file:')) {
+ if (/^file:/.test(path)) {
68
// existsSync/readFileSync can't handle file protocol, but once stripped, it works
69
path = path.replace(/file:\/\/(\w:\\|\/)/, '');
70
}
0 commit comments