mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-25 09:40:38 +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 = {
|
const Resource = {
|
||||||
'MAPPING_EXPRESSION': /\.map$/i,
|
'MAPPING_EXPRESSION': /\.map$/i,
|
||||||
'VERSION_EXPRESSION': /(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?|latest/,
|
'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\//,
|
'MATHJAX': /\/\w.*(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?\/|\/(mathjax\/)?latest\//,
|
||||||
'TINYMCE': /\/\w.*(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?\//,
|
'TINYMCE': /\/\w.*(?:\d{1,2}\.){1,3}\d{1,2}(?:-\d)?\//,
|
||||||
'VERSION_PLACEHOLDER': '{version}'
|
'VERSION_PLACEHOLDER': '{version}'
|
||||||
|
Loading…
Reference in New Issue
Block a user