2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-22 04:30:32 +08:00
|
|
|
module RouteFormat
|
2017-12-22 03:31:28 +08:00
|
|
|
|
|
|
|
def self.username
|
2019-04-23 18:22:47 +08:00
|
|
|
/[%\w.\-]+?/
|
2017-12-22 03:31:28 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.backup
|
|
|
|
/.+\.(sql\.gz|tar\.gz|tgz)/i
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|