Custom module library not detected I am writing a custom module to load the crossfilter.js library in Drupal 7. I have followed what I believe are the right steps to doing that when using the Libraries module API.
However when I run drush libraries-list all I get for my library is 'not detected'

Below is my sample code. I intend to load version 1.3.7 of the library and already I have a directory called crossfilter and I have the crossfilter.js and crossfilter.min.js files in that directory.

What could I possibly be doing wrong?

function crossfilter_libraries_info() {
$libraries['crossfilter'] = array(
  'name' =&gt; 'Crossfilter JS',
  'description' =&gt; 'Crossfilter JS integration for Drupal',
  'download url' =&gt; 'https://github.com/square/crossfilter/archive/master.zip',
  'vendor url' =&gt; 'http://square.github.io/crossfilter/',
  'version arguments' =&gt; array(
      'file' =&gt; 'crossfilter.min.js',
      'pattern' =&gt; '/version="(\d+\.\d+\.\d+)"/',
   ),
  'files' =&gt; array(
      'js' =&gt; array('crossfilter.min.js'),
    ),
  'variants' =&gt; array(
      'source' =&gt; array(
          'files' =&gt; array(
              'js' =&gt; array('crossfilter.js')
            ),
        ),
    ),

);
return $libraries;


}
Most likely your version regex ist wrong. According to the source code, the version string looks like this:

crossfilter.version = "1.3.7";


The regex pattern needs to account for the whitespace around the equal-sign. I'd probably write it like this

'pattern' =&gt; '/crossfilter\.version\s*=\s*"(\d+\.\d+\.\d+)"/',