This website requires JavaScript.
Explore
Help
Sign In
IntenseWebs
/
discourse
Watch
3
Star
0
Fork
0
You've already forked discourse
mirror of
https://github.com/discourse/discourse.git
synced
2024-11-30 12:43:54 -06:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
c12a9279f6
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 14:30:32 -06:00
module
RouteFormat
Allow extensibility on username route format (non-english usernames)
2017-12-21 13:31:28 -06:00
def
self
.
username
/
[
\
w.
\
-]+?
/
end
def
self
.
backup
/
.+
\
.(sql
\
.gz|tar
\
.gz|tgz)
/i
end
end
Reference in New Issue
Copy Permalink