diff --git a/src/js/assets.js b/src/js/assets.js index d8f22c795..8c94ad732 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -51,11 +51,13 @@ let remoteServerFriendly = false; const stringIsNotEmpty = s => typeof s === 'string' && s !== ''; const parseExpires = s => { - const matches = s.match(/(\d+)\s*([dh])?/i); + const matches = s.match(/(\d+)\s*([dhm]?)/i); if ( matches === null ) { return 0; } let updateAfter = parseInt(matches[1], 10); if ( matches[2] === 'h' ) { updateAfter = Math.max(updateAfter, 4) / 24; + } else if ( matches[2] === 'm' ) { + updateAfter = Math.max(updateAfter, 240) / 1440; } return updateAfter; };