summaryrefslogtreecommitdiff
path: root/bootstraptest/test_string.rb
diff options
context:
space:
mode:
authorSteven Harman <steven@harmanly.com>2020-08-18 13:49:08 -0400
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-04-22 14:55:44 +0900
commitbbee6968f82137645f2029379906f5b5d3911ead (patch)
treeb0b42775e5e5a2bea223f949b67d8c9c6422cd1e /bootstraptest/test_string.rb
parent291cfa7125b86d3a14d477effd0e58bdc1723141 (diff)
[ruby/uri] Use Regexp#match? to avoid extra allocationsHEADmaster
`#=~` builds `MatchData`, requiring extra allocations as compared to `#match?`, which returns a boolean w/o having to build the `MatchData`. https://github.com/ruby/uri/commit/158f58a9cc
Diffstat (limited to 'bootstraptest/test_string.rb')
0 files changed, 0 insertions, 0 deletions