Just formatting
This commit is contained in:
parent
25200ef33c
commit
4bb9c058d3
|
@ -130,14 +130,13 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
|
|||
versionNumber = resourcePath.match(Resource.VERSION_EXPRESSION);
|
||||
|
||||
// Handle weird version expressions
|
||||
if(!versionNumber){
|
||||
if (!versionNumber) {
|
||||
if (Resource.SINGLE_NUMBER_EXPRESSION.test(channelPath)) {
|
||||
versionNumber = channelPath.match(/\d/);
|
||||
resourcePattern = resourcePath.replace(versionNumber, Resource.VERSION_PLACEHOLDER);
|
||||
versionNumber = [`${versionNumber}.0`];
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
resourcePattern = resourcePath.replace(versionNumber, Resource.VERSION_PLACEHOLDER);
|
||||
}
|
||||
|
||||
|
|
|
@ -206,8 +206,8 @@ targets.setLastVersion = function (type, version) {
|
|||
} else if (type.startsWith('/bootstrap-3-typeahead/4.')) {
|
||||
return '4.0.2';
|
||||
} else if (type.startsWith('/bowser/')) {
|
||||
if (version != 'latest' && helpers.compareVersion('1.9.4', version)) return '1.9.4';
|
||||
return '2.11.0'
|
||||
if (version !== 'latest' && helpers.compareVersion('1.9.4', version)) return '1.9.4';
|
||||
return '2.11.0';
|
||||
} else if (type.startsWith('/bulma/0.')) {
|
||||
return '0.9.2';
|
||||
} else if (type.startsWith('/Chart.js/2.')) {
|
||||
|
|
Loading…
Reference in New Issue