mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-28 08:29:15 +00:00
don't make non-url uris into invalid links
This commit is contained in:
parent
ff49147146
commit
40642c2263
@ -400,8 +400,10 @@ public class DataRenderer extends Renderer {
|
||||
} else {
|
||||
if (uri.getValue().contains("|")) {
|
||||
x.ah(uri.getValue().substring(0, uri.getValue().indexOf("|"))).addText(uri.getValue());
|
||||
} else {
|
||||
} else if (url.startsWith("http:") || url.startsWith("https:") || url.startsWith("ftp:")) {
|
||||
x.ah(uri.getValue()).addText(uri.getValue());
|
||||
} else {
|
||||
x.code().addText(uri.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user