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

Remove ES6 from editor code

This commit is contained in:
Nick O'Leary 2021-01-07 10:06:08 +00:00
parent 0284ef401e
commit 65b4ef6c3d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -447,7 +447,7 @@ RED.palette.editor = (function() {
function parseModuleList(list) { function parseModuleList(list) {
list = list || ["*"]; list = list || ["*"];
return list.map(rule => { return list.map(function(rule) {
var m = /^(.+?)(?:@(.*))?$/.exec(rule); var m = /^(.+?)(?:@(.*))?$/.exec(rule);
var wildcardPos = m[1].indexOf("*"); var wildcardPos = m[1].indexOf("*");
wildcardPos = wildcardPos===-1?Infinity:wildcardPos; wildcardPos = wildcardPos===-1?Infinity:wildcardPos;