allow for URLs that are references to ISO standards (urn:std:)

This commit is contained in:
Grahame Grieve 2020-12-18 22:44:23 +11:00
parent 40642c2263
commit 836863e372
1 changed files with 2 additions and 1 deletions

View File

@ -1090,7 +1090,8 @@ public class Utilities {
public static boolean isAbsoluteUrl(String ref) {
return ref != null && (ref.startsWith("http:") || ref.startsWith("https:") || ref.startsWith("urn:uuid:") || ref.startsWith("urn:oid:"));
return ref != null && (ref.startsWith("http:") || ref.startsWith("https:") || ref.startsWith("urn:uuid:") || ref.startsWith("urn:oid:") ||
Utilities.startsWithInList(ref, "urn:iso:", "urn:iso-iec:", "urn:iso-cie:", "urn:iso-astm:", "urn:iso-ieee:", "urn:iec:")); // rfc5141
}