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

Fixed: Version expression (#217)

This commit is contained in:
nobody
2021-01-02 17:22:36 +01:00
parent 309380c7b8
commit e4faf52c42
2 changed files with 2 additions and 1 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}|latest/,
'VERSION_EXPRESSION': /(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?|latest/,
'SINGLE_NUMBER_EXPRESSION': /^\D+\d\D+$/,
'VERSION_PLACEHOLDER': '{version}'
};