Merge pull request #581 from hapifhir/2021-06-gg-fixes-1
2021 06 gg fixes 1
This commit is contained in:
commit
c7681852fe
|
@ -1095,7 +1095,9 @@ public class Utilities {
|
|||
public static boolean isAbsoluteUrl(String ref) {
|
||||
if (ref != null && ref.contains(":")) {
|
||||
String scheme = ref.substring(0, ref.indexOf(":"));
|
||||
return existsInList(scheme, "http", "https", "urn") || isToken(scheme) || Utilities.startsWithInList(ref, "urn:iso:", "urn:iso-iec:", "urn:iso-cie:", "urn:iso-astm:", "urn:iso-ieee:", "urn:iec:"); // rfc5141
|
||||
String details = ref.substring(ref.indexOf(":")+1);
|
||||
return (existsInList(scheme, "http", "https", "urn") || isToken(scheme) || Utilities.startsWithInList(ref, "urn:iso:", "urn:iso-iec:", "urn:iso-cie:", "urn:iso-astm:", "urn:iso-ieee:", "urn:iec:"))
|
||||
&& details != null && details.length() > 0 && !details.contains(" "); // rfc5141
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ public class PackageHacker {
|
|||
|
||||
// https://github.com/HL7/fhir-ig-publisher/issues/295
|
||||
if (webref.contains("hl7.org/fhir/us/core/STU4.0.0")) {
|
||||
webref.replace("hl7.org/fhir/us/core/STU4.0.0", "hl7.org/fhir/us/core/STU4");
|
||||
return webref.replace("hl7.org/fhir/us/core/STU4.0.0", "hl7.org/fhir/us/core/STU4");
|
||||
}
|
||||
|
||||
if (isUseSecureReferences()) {
|
||||
|
|
Loading…
Reference in New Issue