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 /[[:space:]]+$/u
The current code can handle $ just as easily as \z because the optional newline can also be matched by [[:space:]]. This wouldn't be guaranteed by a more general "match backwards from the end" approach.
- Loading branch information