1
0
mirror of synced 2025-01-23 08:41:41 +03:00

Now MetaDataFilter takess also regexp. For example whern you want to

extract metadata if you would filter like this: --filter="Article"
would extract also for "ArticleItems" (article_items table). Now you
can use --filter="Article$" if you want only that table (articl)
This commit is contained in:
Catalinux 2012-11-06 13:33:21 +02:00 committed by Benjamin Eberlei
parent 8118dddc6a
commit 6963bf6028

View File

@ -76,9 +76,7 @@ class MetadataFilter extends \FilterIterator implements \Countable
$metadata = $it->current();
foreach ($this->filter as $filter) {
if (strpos($metadata->name, $filter) !== false) {
return true;
}
if(preg_match("#$filter#",$metadata->name,$m)) return true;
}
return false;