1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix flow library in menu to support period characters as flow name (#1320)

This commit is contained in:
Kazuhito Yokoi 2017-07-04 18:02:24 +09:00 committed by Nick O'Leary
parent 1542f73fa5
commit ac60725d2a

View File

@ -196,7 +196,7 @@ function listFlows(path) {
if (r.value.fn) {
var name = r.value.name;
if (!name) {
name = r.value.fn.split(".")[0];
name = r.value.fn.replace(/\.json$/, "");
}
result.f = result.f || [];
result.f.push(name);