зеркало из https://github.com/mozilla/treeherder.git
Switch to ES6 arrow functions in more places (#3169)
This commit is contained in:
Родитель
247e1b980c
Коммит
7c20363e48
|
@ -463,9 +463,8 @@ treeherder.controller('PluginCtrl', [
|
|||
} else {
|
||||
// Cut off trailing "/ " if one exists, capitalize first letter
|
||||
title = title.replace(/\/ $/, "");
|
||||
title = title.replace(/^./, function (l) { return l.toUpperCase(); });
|
||||
title = title.replace(/^./, l => l.toUpperCase());
|
||||
}
|
||||
|
||||
return title;
|
||||
};
|
||||
|
||||
|
|
|
@ -211,9 +211,8 @@ treeherder.controller('PinboardCtrl', [
|
|||
} else {
|
||||
// Cut off trailing "/ " if one exists, capitalize first letter
|
||||
title = title.replace(/\/ $/, "");
|
||||
title = title.replace(/^./, function (l) { return l.toUpperCase(); });
|
||||
title = title.replace(/^./, l => l.toUpperCase());
|
||||
}
|
||||
|
||||
return title;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче