mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
12 lines
126 B
Ruby
12 lines
126 B
Ruby
|
module RouteFormats
|
||
|
|
||
|
def self.username
|
||
|
/[\w.\-]+?/
|
||
|
end
|
||
|
|
||
|
def self.backup
|
||
|
/.+\.(sql\.gz|tar\.gz|tgz)/i
|
||
|
end
|
||
|
|
||
|
end
|