editorconfig/editorconfig — Issue #7: Add support for "/" character when matching section names
Author: treyhunner
Created: 2011-11-06 23:06:31+00:00
State: open
Labels: core code

These two rules should to be implemented in the EditorConfig core:

1. When a pattern contains `/` characters, match the end of the file's directory path (can be matched as far up as the path of the found `.editorconfig` file)
2. When a pattern starts with `/`, match paths in the config file directory only

I believe **1** can be resolved by passing the full file path to fnmatch instead of just the filename.