1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-17 03:20:02 +00:00

Merge pull request #1505 from pmario/fix-search-path-runtime-error

Fix trailing semicolon in TIDDLYWIKI_EDITION_PATH
This commit is contained in:
Jeremy Ruston 2015-02-17 20:56:14 +00:00
commit 6c62954116

View File

@ -1546,7 +1546,11 @@ $tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
env = process.env[envVar];
if(env) {
Array.prototype.push.apply(pluginPaths,env.split(path.delimiter));
env.split(path.delimiter).map(function(item) {
if(item) {
pluginPaths.push(item)
}
});
}
return pluginPaths;
};