Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also set RXf_RTRIM if the pattern is /\s*$/u
It takes a bit more care to handle 0-or-more alternations, but this covers more regex variantions used in the wild.
- Loading branch information
1 parent
f47501b
commit 9da0bd4
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters