From 4eb82a685f1e66502a62d1f32016925be19978c6 Mon Sep 17 00:00:00 2001 From: Z Date: Wed, 4 Mar 2020 19:26:08 +0800 Subject: [PATCH] fix bugs --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index cb0f5cc85..10a17c62a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -451,7 +451,7 @@ Rails.application.routes.draw do get '/about/more', to: 'about#more' get '/terms', to: 'about#terms' - get '/jump/:destin/(*path)', to: 'about#jump', :constraints => { :destin => /[0-z\._\-]+/ } + get '/jump/:destin/(*path)', to: 'about#jump', :constraints => { :destin => /[0-9a-zA-Z\._-]+/ }, :format => 'html' match '/', via: [:post, :put, :patch, :delete], to: 'application#raise_not_found', format: false match '*unmatched_route', via: :all, to: 'application#raise_not_found', format: false