Skip to content

Conversation

@restuff
Copy link
Contributor

@restuff restuff commented Jan 16, 2023

#41971 introduced regex selector update for invisible Unicode characters with additions in #44906.

This PR updates regex expressions by replacing raw invisible characters with counterpart Unicode regex notations to increase visibility of source code in text editors that don't support display of invisible characters labels or in VCS editors.

It also expands matching characters from U+FEFF|U+200B (in case of \Illuminate\Foundation\Http\Middleware::transform()) or from U+FEFF (in case of \Illuminate\Support\Str::squish()) to all characters of same group (\p{Cf} - invisible formatting indicator).

@taylorotwell
Copy link
Member

Needs better explanation, code examples, screenshots, etc. to explain what you are referring to.

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