Skip to content

Matching fails with nocase for patterns with accents  #394

@davidmerfield

Description

@davidmerfield

Hello Isaac, thank you for a fantastic library, I'm planning to use it with Blot to look up files in a case-insensitive manner. I encountered unexpected behaviour when I set the nocase flag to true and searched for files containing accents. Here's a minimal example which demonstrates the issue:

var fileNameWithAccent = "å";

fs.writeFileSync(fileNameWithAccent, "");

glob.sync(fileNameWithAccent);
// returns [ 'å' ] as expected

glob.sync(fileNameWithAccent, { nocase: true });
// returns []
glob 7.1.3
OS macOS 10.12.6
node v8.12.0
npm 6.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions