1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update backtrace cleaner to use Regexp#match?

This commit is contained in:
Bart de Water 2017-02-13 09:25:08 -05:00
parent 2f60a7525e
commit 870af0679e

View file

@ -16,7 +16,7 @@ module Rails
add_filter { |line| line.sub(DOT_SLASH, SLASH) } # for tests
add_gem_filters
add_silencer { |line| line !~ APP_DIRS_PATTERN }
add_silencer { |line| !APP_DIRS_PATTERN.match?(line) }
end
private