Skip to content

Conversation

@felixfontein
Copy link
Contributor

The regex fix is necessary due to mrabarnett/mrab-regex#584.

I've tried to understand what (\s|\S|\Z) should actually (other than matching a letter of anything or the end of the input, i.e. basically anything), and the conclusion seems to be that it's completely unnecessary. I also looked at the WordPress sources and found WordPress/WordPress@d04cd41, which basically does the same replacement as in this PR (namely, get rid of the bracket).

@felixfontein
Copy link
Contributor Author

felixfontein commented Aug 29, 2025

The linting errors are unrelated to this PR.

Edit: #460 fixes these.

@Kwpolska Kwpolska merged commit bf20b98 into master Aug 30, 2025
7 checks passed
@Kwpolska Kwpolska deleted the regex branch August 30, 2025 21:32
@felixfontein
Copy link
Contributor Author

@Kwpolska thanks again! :)

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.

3 participants