You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,18 +90,21 @@ function loadResources(aurelia, resourcesToLoad, appResources) {
89
90
}
90
91
91
92
functionremoveExt(name){
92
-
returnname.replace(/\.[^/.]+$/,'');
93
-
}
94
-
95
-
functiongetExt(name){
96
-
returnname.split('.')[1];
93
+
returnname.replace(extPattern,'');
97
94
}
98
95
99
96
functionaddOriginalExt(normalized,ext){
100
97
returnremoveExt(normalized)+'.'+ext;
101
98
}
102
99
}
103
100
101
+
functiongetExt(name){
102
+
letmatch=name.match(extPattern);
103
+
if(match&&match.length>0){
104
+
return(match[0].split('.'))[1];
105
+
}
106
+
}
107
+
104
108
functionassertProcessed(plugins){
105
109
if(plugins.processed){
106
110
thrownewError('This config instance has already been applied. To load more plugins or global resources, create a new FrameworkConfiguration instance.');
@@ -199,15 +203,11 @@ export class FrameworkConfiguration {
199
203
* @return Returns the current FrameworkConfiguration instance.
0 commit comments