# File lib/padrino-contrib/auto_locale.rb, line 91
        def self.excluded_path?(path, excluded_paths)
          excluded_paths.detect do |excluded_path|
            if excluded_path.is_a?(Regexp)
              !!excluded_path.match(path)
            elsif excluded_path.is_a?(String)
              path.start_with?(excluded_path.end_with?("/") ? excluded_path : "#{excluded_path}/")
            end
          end
        end