We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd60bc5 commit 21b94ccCopy full SHA for 21b94cc
packages/ember-application/lib/system/application.js
@@ -681,11 +681,11 @@ function normalize(fullName) {
681
var result = name;
682
683
if (result.indexOf('.') > -1) {
684
- result = result.replace(/\.(.)/g, function(m) { return m[1].toUpperCase(); });
+ result = result.replace(/\.(.)/g, function(m) { return m.charAt(1).toUpperCase(); });
685
}
686
687
if (name.indexOf('_') > -1) {
688
- result = result.replace(/_(.)/g, function(m) { return m[1].toUpperCase(); });
+ result = result.replace(/_(.)/g, function(m) { return m.charAt(1).toUpperCase(); });
689
690
691
return type + ':' + result;
0 commit comments