shugo (Shugo Maeda)
- Login: shugo
- Registered on: 05/08/2008
- Last sign in: 12/06/2025
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 1 | 154 | 155 |
| Reported issues | 4 | 82 | 86 |
Projects
| Project | Roles | Registered on |
|---|---|---|
| Ruby | Committer, Infrastructure team | 05/28/2008 |
Activity
12/13/2025
12/11/2025
-
09:00 AM Ruby Revision 240e7999 (git): [DOC] Update NEWS for `*selectors` arguments added to `String#strip` etc.
-
08:35 AM Ruby Feature #21552 (Closed): allow String.strip and similar to take a parameter similar to String.delete
- Applied in changeset commit:git|c76ba839b153805f0498229284fea1a809308dbc.
----------
Allow String#strip etc. to take optional character selectors
[Feature #21552]
Co-Authored-By: Claude <noreply@anthropic.com> -
08:34 AM Ruby Revision c76ba839 (git): Allow String#strip etc. to take optional character selectors
- [Feature #21552]
Co-Authored-By: Claude <noreply@anthropic.com>
12/10/2025
-
06:28 AM Ruby Feature #21552: allow String.strip and similar to take a parameter similar to String.delete
- tr_setup_table_multi() was called twice in String#{strip,strip!}, so I've fixed it: https://github.com/ruby/ruby/pull/15400/commits/c9cb93f201644cd5e2fbbd6e83cf50acb27642de
### Benchmark
https://gist.github.com/shugo/c6367f4139bc2d...
12/05/2025
-
02:26 AM Ruby Feature #21552: allow String.strip and similar to take a parameter similar to String.delete
- shugo (Shugo Maeda) wrote in #note-4:
> Unlike String#delete, the current implementation doesn't take multiple arguments.
> ...
I've noticed that String#count also take multiple selectors, so I've applied the same changes to String#str...
12/04/2025
-
06:30 AM Ruby Feature #21552: allow String.strip and similar to take a parameter similar to String.delete
- Suggested by nobu, I've added documentation and tests for character selectors: https://github.com/ruby/ruby/pull/15400/commits/a9ad44007dbb0ea543ce1eb8748edd4213083c5f
Exmaples:
```
"012abc345".strip("0-9") # "abc"
"012abc345".st... -
03:05 AM Ruby Feature #21552: allow String.strip and similar to take a parameter similar to String.delete
- I just heard someone ask for a strip function that doesn't remove NUL characters.
Since Python's `str.strip` takes an optional argument, it might be a good idea to introduce a similar feature.
I've created a pull request at <https://... -
06:24 AM Ruby Misc #21689: DevMeeting-2025-12-11
- - [Feature #21552] allow String.strip and similar to take a parameter similar to String.delete
- pull request: https://github.com/ruby/ruby/pull/15400
- Is it acceptable to take character selectors like String#delete?
- [Python's...