Project

General

Profile

Actions

Bug #17110

closed

String.tr unexpected behaviour with backslash

Added by theplen (Joey Sheets) over 3 years ago. Updated over 3 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]
[ruby-core:99528]

Description

"\\".tr("\\","A") works great, with "\\" becoming "A".

"\\".tr("\\C","AB") should also output "A", but instead outputs "\\".

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0