From 299ecfd5668a3c51003cebbfee23f499a57ec2b3 Mon Sep 17 00:00:00 2001 From: nobody Date: Sat, 3 Dec 2022 07:01:51 +0100 Subject: [PATCH] Improve single version number detection (#1229) --- core/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/constants.js b/core/constants.js index 950cde40..f5ee303f 100644 --- a/core/constants.js +++ b/core/constants.js @@ -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}'