Skip to content
Snippets Groups Projects
Commit 66ef47af authored by rswindell's avatar rswindell
Browse files

Fix error line 792: TypeError: file_getext(dir) is undefined

when outbound directory (dir) was "../some/path".
parent 68f1805e
No related branches found
No related tags found
No related merge requests found
......@@ -787,9 +787,10 @@ function run_outbound(ran)
dirs.forEach(function(dir) {
var pnts;
if (dir.indexOf('.') === -1)
var ext = file_getext(dir);
if (ext === undefined)
return;
if (file_getext(dir).search(/^\.[0-9a-f]+$/) == 0) {
if (ext.search(/^\.[0-9a-f]+$/) == 0) {
if (file_isdir(dir)) {
addDir(dir);
pnts = directory(backslash(dir)+'.pnt', false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment