This website requires JavaScript.
Explore
关于
常见问题
Help
Sign in
Discourse
/
discourse
Watch
2
Star
0
Fork
You've already forked discourse
0
mirror of
https://github.com/discourse/discourse.git
synced
2025-09-04 08:47:37 +08:00
Code
Packages
Activity
Actions
11
8e48b339fa
discourse
/
lib
/
route_format.rb
12 lines
125 B
Ruby
Raw
Normal View
History
Unescape
Escape
FIX: `RouteFormat` is a better class name than `RouteFormats`
2017-12-21 15:30:32 -05:00
module
RouteFormat
Allow extensibility on username route format (non-english usernames)
2017-12-21 14:31:28 -05:00
def
self
.
username
/
[
\
w.
\
-]+?
/
end
def
self
.
backup
/
.+
\
.(sql
\
.gz|tar
\
.gz|tgz)
/i
end
end
Copy permalink