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*$/ (without the //u flag).
Without the //u flag, \s and [[:space:]] are compiled to POSIXD ops. The POSIXD op behaves differently depending on whether the target string has SVf_UTF8 set. One could in theory continue and handle the case of the //a flag (POSIXA ops), but this doesn't seem worth it for an optimisation, as it is unlikely to be common on regexs that are intended to remove "generic" whitespace from the end of a string.
- Loading branch information
1 parent
9da0bd4
commit 1737272
Showing
2 changed files
with
19 additions
and
1 deletion.
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