Merge pull request #67 from pspeter3/master

Adding path cleaning
This commit is contained in:
Evan Wallace 2015-05-30 10:09:03 -07:00
commit 51f86195f5

View File

@ -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];
}