Project

General

Profile

Feature #5422

File.fnmatch != Dir.glob # {no,sets}

Added by sunaku (Suraj Kurapati) about 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:40037]

Description

Hello,

The File.fnmatch methods do not support Dir.glob's set notation:

Dir.glob '{.g,t}'
=> [".gem", "test"]
File.fnmatch? '{.g,t}
', 'test'
=> false
File.fnmatch? '{.g,t}*', '.gem'
=> false

Please add set notation to fnmatch() and make it equal to glob().

Thanks for your consideration.

Also available in: Atom PDF