1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-24 17:20:49 +01:00

Improve single version number detection (#1229)

This commit is contained in:
nobody 2022-12-03 07:01:51 +01:00
parent 20c140798c
commit 299ecfd566
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

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