Skip to content

FHIRPath cases for unescape('json') of quotes and unicode escapes - #316

Merged
grahamegrieve merged 1 commit into
FHIR:masterfrom
oldrobotdev:unescape-json
Oct 23, 2026
Merged

grahamegrieve merged 1 commit into
FHIR:masterfrom
oldrobotdev:unescape-json

Conversation

@oldrobotdev

@oldrobotdev oldrobotdev commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Test cases for hapifhir/org.hl7.fhir.core#2762, in r4, r4b, r5 and r6.

testUnescapeJson2 checks that unescape('json') reverses escape('json'), testUnescapeJson3 that \u0041B becomes AB, and testUnescapeJson4 that an escaped quote is unescaped. The existing testUnescapeJson has no backslash in its input, because the lexer turns " into " first, so it doesn't test the escape. On core master all 3 fail in each of the four engines (b1<2b and A0041B), and they pass with the core PR.

@grahamegrieve grahamegrieve left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok thanks

@grahamegrieve
grahamegrieve merged commit 2c1b5e8 into FHIR:master Oct 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants