theplen (Joey Sheets)
- Login: theplen
- Registered on: 08/10/2020
- Last sign in: 08/10/2020
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
08/10/2020
-
02:51 PM Ruby Bug #17110: String.tr unexpected behaviour with backslash
- Yusuke Endoh, thanks for clearing it up.
-
07:09 AM Ruby Bug #17110: String.tr unexpected behaviour with backslash
- Is there no way to do change all backslashes to forward slashes and forward slashes to backslashes in the same tr command?
``` ruby
# Should result in "/\\" but instead results in "\\/" (unchanged)
"\\/".tr("\//","\\/")
```
-
03:01 AM Ruby Bug #17110: String.tr unexpected behaviour with backslash
- ``` ruby
"\\".tr("\\","A") works great, with "\\" becoming "A"
"\\".tr("\\C","AB") should also output "A" but instead outputs "\\"
```
-
03:00 AM Ruby Bug #17110 (Rejected): String.tr unexpected behaviour with backslash
- `"\\".tr("\\","A")` works great, with `"\\"` becoming `"A"`.
`"\\".tr("\\C","AB")` should also output `"A"`, but instead outputs `"\\"`.