mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-22 21:30:22 +08:00
fix: getLatestUrl does not get the last url when the timestamp is the same
This commit is contained in:
parent
a1257bdbfb
commit
0035307762
@ -90,7 +90,7 @@ const getLatestUrl = (list) => {
|
|||||||
const tsMch = list[i].match(/timestamp=(\d+)/)
|
const tsMch = list[i].match(/timestamp=(\d+)/)
|
||||||
if (tsMch?.[1]) {
|
if (tsMch?.[1]) {
|
||||||
const ts = parseInt(tsMch[1])
|
const ts = parseInt(tsMch[1])
|
||||||
if (time < parseInt(tsMch[1])) {
|
if (time <= parseInt(tsMch[1])) {
|
||||||
time = ts
|
time = ts
|
||||||
result = list[i]
|
result = list[i]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user