From c28cbabd54b34cbae1ac473ffba343a979b4e8f0 Mon Sep 17 00:00:00 2001 From: Lloyd McKenzie Date: Thu, 14 Nov 2024 22:02:42 -0700 Subject: [PATCH] Fix fragment problem with multi-word resource names. https://chat.fhir.org/#narrow/channel/179252-IG-creation/topic/Jekyll.3A.20Liquid.20syntax.20error.3A.20Unknown.20tag.20'fragment' --- .../src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java index 50fcccdad..f084bfd50 100644 --- a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java +++ b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java @@ -11251,7 +11251,7 @@ private String processFragment(String arguments, FetchedFile f) throws FHIRExcep String format = (secondSpace == -1) ? arguments.substring(firstSpace) : arguments.substring(firstSpace, secondSpace); format = format.trim().toLowerCase(); String filters = (secondSpace == -1) ? "" : arguments.substring(secondSpace).trim(); - Pattern refPattern = Pattern.compile("^([A-Z][a-z]+)+\\/([A-Za-z0-9\\-\\.]{1,64})$"); + Pattern refPattern = Pattern.compile("^([A-Za-z]+)\\/([A-Za-z0-9\\-\\.]{1,64})$"); Matcher refMatcher = refPattern.matcher(reference); if (!refMatcher.find()) throw new FHIRException("Fragment syntax error: Referenced instance must be expressed as [ResourceType]/[id]. Found " + reference + " in file " + f.getName());