ci: format
This commit is contained in:
parent
ec1d4c6092
commit
53db05e6b2
2 changed files with 11 additions and 3 deletions
|
|
@ -679,11 +679,13 @@ function M.parse_duration_to_days(s)
|
|||
end
|
||||
n = s:match('^(%d+)w$')
|
||||
if n then
|
||||
return tonumber(n) --[[@as integer]] * 7
|
||||
return tonumber(n) --[[@as integer]]
|
||||
* 7
|
||||
end
|
||||
n = s:match('^(%d+)m$')
|
||||
if n then
|
||||
return tonumber(n) --[[@as integer]] * 30
|
||||
return tonumber(n) --[[@as integer]]
|
||||
* 30
|
||||
end
|
||||
n = s:match('^(%d+)$')
|
||||
if n then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue