diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-04 09:22:57 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-05 08:10:13 +0900 |
commit | 6768390a429d43539d72edc710175e3e84e17696 (patch) | |
tree | 2ac23298ee82e3a10ec57be35c968bddb8829ccc /activesupport/CHANGELOG.md | |
parent | 552840660389e39f3ba8e47dcf35ab817c01cb48 (diff) | |
download | rails-6768390a429d43539d72edc710175e3e84e17696.tar.gz rails-6768390a429d43539d72edc710175e3e84e17696.tar.bz2 rails-6768390a429d43539d72edc710175e3e84e17696.zip |
Use `content_type.start_with?("...")` than `content_type =~ /^.../`
`start_with?` is a little faster than regexp for prefix matching by a
fixed string.
Diffstat (limited to 'activesupport/CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions