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:
parent
2f60a7525e
commit
870af0679e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue