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:
parent
20c140798c
commit
299ecfd566
@ -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}'
|
||||
|
Loading…
Reference in New Issue
Block a user