Skip to content

--exclude-dir cannot handle the slash at the end of dir #250

@c02y

Description

@c02y

Describe the bug
A clear and concise description of what the bug is.
When I add slash at the end of dir of --exclude-dir, the dir is not excluded.

To Reproduce

# inside scc repo
>> scc --version
scc version 3.0.0
>> scc | rg Total
Total                      178     25942     3002      1729    21211       2327
>> scc --exclude-dir examples/ | rg Total
Total                      178     25942     3002      1729    21211       2327
>> scc --exclude-dir examples | rg Total
Total                       67     19263     1963       668    16632       1476

Expected behavior
A clear and concise description of what you expected to happen.
--exclude-dir should handle that situation that the dir got slash at the end since most of the time I would just tab to complete the dir.

Desktop (please complete the following information):

  • OS: [e.g. macOS, Windows, Linux] Manjaro-Linux
  • Version [e.g. 22] v3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions