1 module ActiveSupport
#:nodoc:
2 module CoreExtensions
#:nodoc:
3 module Pathname
#:nodoc:
5 # Clean the paths contained in the provided string.
6 def clean_within(string
)
7 string
.gsub(%r
{[\w
. ]+(/[\w
. ]+)+(\
.rb
)?(\b|$
)}) do |path
|