Ensure i18n of scoped package name

fixes #3452
This commit is contained in:
Steve-Mcl 2022-04-04 16:20:44 +01:00
parent 77e2e44abc
commit 6d0b55f753
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ var RED = (function() {
var parts = topic.split("/");
var node = RED.nodes.node(parts[1]);
if (node) {
if (msg.hasOwnProperty("text") && msg.text !== null && /^[a-zA-Z]/.test(msg.text)) {
if (msg.hasOwnProperty("text") && msg.text !== null && /^[@a-zA-Z]/.test(msg.text)) {
msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString()});
}
node.status = msg;