diff options
author | Mau Magnaguagno <maumagnaguagno@gmail.com> | 2022-12-27 14:05:28 -0300 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-12-27 17:05:32 +0000 |
commit | ec7e082906d5c32c5e895137fd0d562fa237ca12 (patch) | |
tree | 23694ec6c2f56ed3d4d9cb9d7686121c59af2b93 /defs | |
parent | 140c93e2dcdccc640a3be3ad6b5f7a7696587dbc (diff) | |
download | ruby-ec7e082906d5c32c5e895137fd0d562fa237ca12.tar.gz |
[ruby/irb] Refactor RubyLex#process_literal_type
(https://github.com/ruby/irb/pull/350)
Simplify part of regex ``[_a-zA-Z0-9]`` with equivalent shorthand ``\w``.
Replace case-when with match ``$1`` or default value ``?"``, making intention more clear.
Diffstat (limited to 'defs')
0 files changed, 0 insertions, 0 deletions