Compensate for lack of mod id in litemod claritas resolution.

More tweaks to Claritas.
This commit is contained in:
Daniel Scalzi committed 2020-07-16 20:26:22 -04:00
1 parent bda96eb24e
commit ea23912a85
3 files changed
+24 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
export class MetadataUtil {
public static completeGroupInference(partial: string, id: string): string {
const bits = partial.split('.')
let isBadTerm = true
while(isBadTerm && bits.length > 2) {
const term = bits[bits.length-1]
if(term !== id) {
isBadTerm = false
} else {
bits.pop()
}
}
return bits.join('.')
}
}