- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:39am 31 July 2023 - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply
* It appears that version arguments declared within variants are not taken into account when performing version detection within libraries_detect().
* The documentation indicates that top-level properties (such as 'version arguments' would be overridden.
An example of the the hook_libraries_info definition is:
$libraries['backbone'] = array(
'name' => 'Backbone',
'vendor url' => 'http://documentcloud.github.io/backbone/',
'download url' => 'http://backbonejs.org/backbone.js',
'files' => array(
'js' => array(
'backbone.js',
),
),
'version arguments' => array(
'file' => 'backbone.js',
'pattern' => '/Backbone.js\s*([\d\.]+)/',
),
'versions' => array(
'1.0.0' => array(
'variants' => array(
'source' => array(
'files' => array(
'js' => array(
'backbone.js',
),
),
),
'minified' => array(
'files' => array(
'js' => array(
'backbone-min.js',
),
),
'version arguments' => array(
'file' => 'backbone-min.js',
'pattern' => '/VERSION="([\d\.]+)"/',
),
),
),
),
),
'dependencies' => array('underscore (>=1.4.4)'),
);
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.