mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: RouteFormat
is a better class name than RouteFormats
This commit is contained in:
11
lib/route_format.rb
Normal file
11
lib/route_format.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module RouteFormat
|
||||
|
||||
def self.username
|
||||
/[\w.\-]+?/
|
||||
end
|
||||
|
||||
def self.backup
|
||||
/.+\.(sql\.gz|tar\.gz|tgz)/i
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue
Block a user