From ac60725d2a85cb3cf3e791898d7eb3595dc18cae Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Tue, 4 Jul 2017 18:02:24 +0900 Subject: [PATCH] Fix flow library in menu to support period characters as flow name (#1320) --- red/runtime/storage/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/runtime/storage/index.js b/red/runtime/storage/index.js index bff092080..1d6a13c65 100644 --- a/red/runtime/storage/index.js +++ b/red/runtime/storage/index.js @@ -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);