mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 23:03:50 +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:
commit
6c62954116
@ -1546,7 +1546,11 @@ $tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
|
|||||||
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
|
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
|
||||||
env = process.env[envVar];
|
env = process.env[envVar];
|
||||||
if(env) {
|
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;
|
return pluginPaths;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user