Update lexer extractor, fix tests

This commit is contained in:
Daniel Supernault 2022-12-27 05:36:12 -07:00
parent 710cc60194
commit 898911f9a9
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -268,7 +268,7 @@ class Extractor extends Regex
return []; return [];
} }
$bannedTags = TrendingHashtagService::getBannedHashtagNames(); $bannedTags = config('app.env') === 'production' ? TrendingHashtagService::getBannedHashtagNames() : [];
preg_match_all(self::$patterns['valid_hashtag'], $tweet, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); preg_match_all(self::$patterns['valid_hashtag'], $tweet, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
$tags = []; $tags = [];