Skip to content

Fix match filter representation in --help-types - #406

Open
dmitrivereshchagin wants to merge 2 commits into
beyondgrep:devfrom
dmitrivereshchagin:match-help-types
Open

dmitrivereshchagin wants to merge 2 commits into
beyondgrep:devfrom
dmitrivereshchagin:match-help-types

Conversation

@dmitrivereshchagin

Copy link
Copy Markdown
Contributor

Match filter pattern is now displayed the same as firstlinematch filter pattern:

% ack --type-set=xx:match:/xx/ --help-types | ack -w xx
    xx           Filename matches /xx/
% ack --type-set=xx:firstlinematch:/xx/ --help-types | ack -w xx
    xx           First line matches /xx/

Previously, it was displayed like this:

% ack --type-set=xx:match:/xx/ --help-types | ack -w xx
    xx           Filename matches (?^i:xx)

Match filter pattern is now displayed the same as firstlinematch
filter pattern:

    % ack --type-set=xx:match:/xx/ --help-types | ack -w xx
        xx           Filename matches /xx/
    % ack --type-set=xx:firstlinematch:/xx/ --help-types | ack -w xx
        xx           First line matches /xx/

Previously, it was displayed like this:

    % ack --type-set=xx:match:/xx/ --help-types | ack -w xx
        xx           Filename matches (?^i:xx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant