gerardroche / sublime-phpunit

PHPUnit Sublime Text integration.
https://www.gerardroche.com
GNU General Public License v3.0
74 stars 11 forks source link

Optimise --filter option pattern #84

Closed gerardroche closed 5 years ago

gerardroche commented 5 years ago

The current --filter option just joins a list inside a or regex pattern:

def build_filter_option_pattern(list):
    return '::(' + '|'.join(sorted(list)) + ')( with data set .+)?$'

The pattern could be optimised to avoid really long patterns.

Also, maybe we should put a limit on the size?

myself379 commented 5 years ago

Cool ideas!