Commit 5bf24ac 1 parent 564645b commit 5bf24ac Copy full SHA for 5bf24ac
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -125,18 +125,18 @@ export function getReferenceObjectsFrom(content: string) {
125
125
let currentObject : ILEObject ;
126
126
127
127
for ( let line of lines ) {
128
- const shortLine = line . trim ( ) ;
129
- if ( shortLine . length === 0 ) continue ;
130
- if ( shortLine . startsWith ( `#` ) ) continue ;
128
+ const upperLine = line . trim ( ) . toUpperCase ( ) ;
129
+ if ( upperLine . length === 0 ) continue ;
130
+ if ( upperLine . startsWith ( `#` ) ) continue ;
131
131
132
132
// If the line starts with space, then it's an export of the parent
133
133
if ( line . startsWith ( ` ` ) || line . startsWith ( `\t` ) ) {
134
134
if ( currentObject ) {
135
- currentObject . exports . push ( shortLine . toUpperCase ( ) ) ;
135
+ currentObject . exports . push ( upperLine ) ;
136
136
}
137
137
138
138
} else {
139
- const objectParts = line . toUpperCase ( ) . split ( `.` ) ;
139
+ const objectParts = upperLine . split ( `.` ) ;
140
140
141
141
if ( objectParts [ 0 ] . length > 10 ) {
142
142
warningOut ( `Trying to add referenced object: object name '${ objectParts [ 0 ] } ' is too long.` ) ;
You can’t perform that action at this time.
0 commit comments