fix bug in package version detection
This commit is contained in:
parent
7833281a52
commit
3963e13e58
|
@ -958,7 +958,8 @@ public class NpmPackage {
|
|||
public String fhirVersion() {
|
||||
if ("hl7.fhir.core".equals(npm.asString("name")))
|
||||
return npm.asString("version");
|
||||
else if ("fhir.core".equals(npm.asString("type")) &&
|
||||
else if (
|
||||
Utilities.existsInList(npm.asString("type"), "fhir.core", "fhir.examples") &&
|
||||
Utilities.startsWithInList( npm.asString("name"), "hl7.fhir.r2.", "hl7.fhir.r2b.", "hl7.fhir.r3.",
|
||||
"hl7.fhir.r4.", "hl7.fhir.r4b.", "hl7.fhir.r5.")) {
|
||||
return npm.asString("version");
|
||||
|
|
Loading…
Reference in New Issue