Skip to content

Commit be81966

Browse files
committed
FIx an issue when analyzing models (fix #51)
1 parent 530481f commit be81966

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/metamodel.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ function createClassInfo() {
864864
* @private
865865
*/
866866
function getReference(value) {
867-
return value.replace('@', '');
867+
return value.replace('@', '').trim();
868868
}
869869

870870

@@ -1061,9 +1061,10 @@ function schema(importedSchema) {
10611061
list = {};
10621062

10631063
inherits.forEach(function (name) {
1064-
if (typeof list[name] === 'undefined') {
1065-
list[name] = name;
1066-
filteredList.push(name);
1064+
var cleanName = name.trim();
1065+
if (typeof list[cleanName] === 'undefined') {
1066+
list[cleanName] = cleanName;
1067+
filteredList.push(cleanName);
10671068
}
10681069
});
10691070

0 commit comments

Comments
 (0)