From a97856ae4adc2ff0fe572f9bf7d8f1cebb273d59 Mon Sep 17 00:00:00 2001 From: Phips Peter Date: Fri, 29 May 2015 00:07:39 -0700 Subject: [PATCH] Adding path cleaning For some reason, some files will have a trailing new line for their name. This code cleans up the path to no longer have the trailing space. --- source-map-support.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source-map-support.js b/source-map-support.js index fa70d18..88c25eb 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -19,6 +19,8 @@ function isInBrowser() { } function retrieveFile(path) { + // Trim the path to make sure there is no extra whitespace. + path = path.trim(); if (path in fileContentsCache) { return fileContentsCache[path]; }