Remove unnecessary brackets on WIKI_SLUG_ID route constraints

上级 928c9480
......@@ -513,7 +513,7 @@ Rails.application.routes.draw do
end
end
WIKI_SLUG_ID = { id: /[\S]+/ } unless defined? WIKI_SLUG_ID
WIKI_SLUG_ID = { id: /\S+/ } unless defined? WIKI_SLUG_ID
scope do
# Order matters to give priority to these matches
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册