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
1 changed files with 1 additions and 1 deletions

View File

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