forked from facebook/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix printing of strings with \x00 followed by ascii digits
Summary: consider the string `"\x00\x31"`. separately, `\x00` can be printed as `\0` and `\x31` is `1`. but together, you'd get `\01`, which is a legacy octal 1. so, look ahead and print `\x00` when the next codepoint is a digit so we get `\x001` instead. Reviewed By: pieterv Differential Revision: D15416584 fbshipit-source-id: f98562ff2de5ed7d935d8410fe14eb8de595af45
- Loading branch information
1 parent
0aa954c
commit e952176
Showing
2 changed files
with
41 additions
and
3 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