mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-04-20 23:46:39 -04:00
Merge branch 'master' into feat-searchText-from-stringbase-to-regexbase (1)
This commit is contained in:
commit
42c9bcacde
@ -485,7 +485,7 @@ function ApiCache() {
|
||||
}
|
||||
|
||||
if (typeof duration === "string") {
|
||||
let split = duration.match(/^([\d\.,]+)\s?(\w+)$/);
|
||||
let split = duration.match(/^([\d\.,]+)\s?([a-zA-Z]+)$/);
|
||||
|
||||
if (split.length === 3) {
|
||||
let len = parseFloat(split[1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user