Skip to content

Improve stripmodxtags output filter #15975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Improve stripmodxtags output filter #15975

merged 1 commit into from
Jan 28, 2022

Conversation

Jako
Copy link
Collaborator

@Jako Jako commented Jan 18, 2022

What does it do?

Improve the stripmodxtags regular expression

Why is it needed?

The previous string was using double quotes. Because of this the backslashes inside have to be escaped and the regular expression was not directly readable. The closing square brackets don't have to be escaped with backslashes (redundant character escape according to PhpStorm).

How to test

See this example: https://regex101.com/r/Tx8abk/1

Related issue(s)/PR(s)

3.x port of #15963

@Jako Jako requested review from Mark-H and opengeek as code owners January 18, 2022 18:31
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Jan 18, 2022
@Jako Jako changed the base branch from 2.x to 3.x January 18, 2022 18:33
@Ibochkarev Ibochkarev added the pr/review-needed Pull request requires review and testing. label Jan 18, 2022
@Ibochkarev Ibochkarev added this to the v3.0.0-rc1 milestone Jan 18, 2022
@Mark-H Mark-H modified the milestones: v3.0.0-rc1, v3.0.0-rc2 Jan 19, 2022
@opengeek opengeek changed the title Improve stripmodxtags 3x Improve stripmodxtags output filter Jan 28, 2022
@opengeek opengeek merged commit 6e4d921 into modxcms:3.x Jan 28, 2022
@Jako Jako deleted the improve-stripmodxtags-3x branch January 29, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR. pr/review-needed Pull request requires review and testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants