Skip to content

There are duplicates when using non-normalized paths in patterns #190

@yannvgn

Description

@yannvgn

Environment

  • OS Version: macOS 10.14
  • Node.js Version: 8.11.4

Actual behavior

The output of fast-glob contains duplicates when using non-normalized paths in patterns (like ./file.txt).

Expected behavior

Duplicates should be avoided.

Steps to reproduce & code sample

Let's assume the working directory contains the following files: file1.txt and file2.txt

fastGlob.sync(['*', './file1.txt'])
// returns ['./file1.txt', 'file2.txt', 'file1.txt']
// where I'm expecting ['file1.txt', 'file2.txt']

I just wanted to raise the issue, though I'm not sure if this is an actual bug or if it's wanted.

Cheers

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions