Skip to content

Ensure newlines are included in the preg_replace() for field_groups.#15

Open
anemirovsky wants to merge 1 commit into
backdrop-contrib:1.x-1.xfrom
giant-rabbit:1.x-1.x
Open

Ensure newlines are included in the preg_replace() for field_groups.#15
anemirovsky wants to merge 1 commit into
backdrop-contrib:1.x-1.xfrom
giant-rabbit:1.x-1.x

Conversation

@anemirovsky

Copy link
Copy Markdown

Without the s modifier, the dot in .* will not match newlines so field_group descriptions with a newline will not get replaced which then causes the description to render twice.

Fixes #14

Without the `s` modifier, the dot in `.*` will not match newlines so
field_group descriptions with a newline will not get replaced which then
causes the description to render twice.

Fixes backdrop-contrib#14
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.

preg_replace() for field_group descriptions fails if the description contains newlines

1 participant