Skip to content

YAML normalization: Fix non-HTML fragment smart punctuation replacement#5621

Merged
aduth merged 4 commits intomainfrom
aduth-fix-smart-punctuation-end-fragment
Nov 19, 2021
Merged

YAML normalization: Fix non-HTML fragment smart punctuation replacement#5621
aduth merged 4 commits intomainfrom
aduth-fix-smart-punctuation-end-fragment

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 18, 2021

Related: https://github.com/18F/identity-idp/pull/5617/files#r752657699

Why: So that we're normalizing YAML consistently.

The previous regular expression would match content up to and within HTML tags, but would not match in cases where the string contains no HTML, or where text occurred after an HTML tag.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM, good catch!

@aduth aduth merged commit 925f249 into main Nov 19, 2021
@aduth aduth deleted the aduth-fix-smart-punctuation-end-fragment branch November 19, 2021 15:21
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