Skip to content

fix: preserve Unicode characters in filenames for --filter matching#1624

Open
Vmadmax wants to merge 2 commits intopestphp:4.xfrom
Vmadmax:fix/unicode-filename-filter
Open

fix: preserve Unicode characters in filenames for --filter matching#1624
Vmadmax wants to merge 2 commits intopestphp:4.xfrom
Vmadmax:fix/unicode-filename-filter

Conversation

@Vmadmax
Copy link

@Vmadmax Vmadmax commented Feb 2, 2026

What:

  • Bug Fix
  • New Feature

Description:

The --filter option didn't work with Unicode characters (ß, ä, ö, ü, etc.) in filenames.

For example, --filter=".*Straß.*" failed to find StraßenTest.php because the regex in TestCaseFactory.php stripped all Unicode characters from the filename (StraßenTest became StraenTest).

Changed the regex to use \p{L}\p{N} (Unicode letters and Numbers) with the /u modifier to preserve Unicode characters.

Related:

--

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.

1 participant