1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Improved: Determination of latest versions (#194)

This commit is contained in:
nobody
2020-12-08 19:49:09 +01:00
parent 6d624a30ae
commit ac7f1cf4d7
3 changed files with 10 additions and 11 deletions

View File

@ -55,7 +55,7 @@ const MessageResponse = {
const Resource = {
'MAPPING_EXPRESSION': /\.map$/i,
'VERSION_EXPRESSION': /(?:\d{1,2}\.){1,3}\d{1,2}/,
'VERSION_EXPRESSION': /(?:\d{1,2}\.){1,3}\d{1,2}|latest/,
'SINGLE_NUMBER_EXPRESSION': /^\D+\d\D+$/,
'VERSION_PLACEHOLDER': '{version}'
};