Skip to content

Commit

Permalink
Handle all file suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pezmc committed Nov 10, 2023
1 parent 3411273 commit 0589e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node_modules/@node-red/registry/lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async function loadNodeConfig(fileInfo) {
module: module,
name: name,
file: file,
template: file.replace(/\.(\w)?js$/,".html"),
template: file.replace(/\.[^.]+$/, '.html'),
enabled: isEnabled,
loaded:false,
version: version,
Expand Down

0 comments on commit 0589e1f

Please sign in to comment.