Let Performance/StartWith and Performance/EndWith correct Regexp#match and Regexp#=~ by eugeneius · Pull Request #82 · rubocop/rubocop-performance
Support for String#match? was added in rubocop/rubocop#5744, but not Regexp#match?. Calling =~ on a regex literal generates a specialised AST node, match-with-lvasgn, to support assigning named cap...