-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return UTF-8 strings when replacing with a string
When replacing with a string pattern, we will implicitly create an RE2 pattern from the string with the default options meaning it will assume and produce UTF-8 results. This could potentially be a breaking change for users who rely on the string pattern's encoding but the behaviour has been misleading (and passing anything except ISO-8859-1 or UTF-8 to RE2 is undefined).
- Loading branch information
Showing
2 changed files
with
42 additions
and
23 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