Skip to content

Double-slash in the middle of the pattern is not collapsed #330

@mgol

Description

@mgol

Environment

  • OS Version: macOS 11.5.1 (20G80)
  • Node.js Version: v14.17.4

Actual behavior

console.log(fastGlob.sync('/app/*.json'));  // ["/app/package.json"]
console.log(fastGlob.sync('/app//*.json')); // []

Expected behavior

console.log(fastGlob.sync('/app/*.json'));  // ["/app/package.json"]
console.log(fastGlob.sync('/app//*.json')); // ["/app/package.json"]

Steps to reproduce

  1. See The code samples or open https://runkit.com/mgol/610aaad4e1d4410013466894. The glob package behaves as expected here.

Code sample

Code already provided above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions