UnionOfRAD/lithium — pull request #798 by BlaineSch (2013-01-24 01:59:49+00:00)
Title: Add GLOB_BRACE option for better pattern searches.

I'm basically trying to do something like this:
~~~ php
Libraries::paths(array(
'rules' => array(
'{:library}\extensions\test\rules\{:class}\{:name}',
'{:library}\test\rules\{:class}\{:name}' => array('libraries' => 'li3_quality'),
),
'ruleSets' => array(
'{:library}\test\*{rules,defaultRules}',
),
));
$ruleSets = Libraries::locate('ruleSets', null, array(
'recursive' => false,
'suffix' => '.json',
'preFilter' => '/(r|defaultR)ules\.json/',
'format' => false,
));
~~~

This sets priority and better matching.