Version detection of Vue.js (#598)

This commit is contained in:
nobody 2021-08-03 06:30:20 +02:00
parent e1ed284fc7
commit 9c87f1e917
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'bundle': 'Materialize'
};
} else if (/cdn\.jsdelivr\.net\/npm\/vue@(2|3)/.test(CompleteURL)) {
let version = CompleteURL.slice(-1);
let version = CompleteURL.match(Resource.VERSION_EXPRESSION);
lastVersion = targets.setLastVersion(`/vue/${version}.`);
if (lastVersion === false) {
return false;

View File

@ -49,7 +49,7 @@
</ul>
<p>Fixed</p>
<ul>
<li>Version detection of Vue.js (<a href="https://codeberg.org/nobody/LocalCDN/commit/465a18cb04e21968ee1b33519d77982475c28308">#465a18cb04</a>)</li>
<li>Version detection of Vue.js (<a href="https://codeberg.org/nobody/LocalCDN/issues/465a18cb04e21968ee1b33519d77982475c28308">#465a18cb04</a>, <a href="https://codeberg.org/nobody/LocalCDN/issues/598">#598</a>)</li>
<li>Latest version of toastr.js (<a href="https://codeberg.org/nobody/LocalCDN/issues/590">#590</a>)</li>
</ul>
<p>Improved</p>