General

Profile

alexandre (alexandre borderes)

  • Login: alexandre
  • Registered on: 07/14/2023
  • Last sign in: 07/14/2023

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

07/14/2023

09:33 PM Ruby Bug #19769: Range of size 1 in String#tr causes unexpected behavior
I created a PR https://github.com/ruby/ruby/pull/8080 alexandre (alexandre borderes)
09:24 PM Ruby Bug #19769 (Closed): Range of size 1 in String#tr causes unexpected behavior
Hi,
I noticed a possible unexpected behavior in String#tr.
Is that intentional?
``` ruby
'ABC'.tr 'A-AB', 'XY' # => "YYC"
```
I would expect the same result as:
``` ruby
'ABC'.tr 'AB', 'XY' # => "XYC"
```
The tr u...
alexandre (alexandre borderes)

Also available in: Atom