Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only ignore embedded JSON/YAML/properties file extensions
Prior to this patch, setting `ignore_file_extension` had two unexpected effects: 1. Any path containing `.` would be truncated 2. Paths which did not include periods would simply be removed from the key/value store: ``` > var file = 'foo/bar/baz'; undefined > file = file.substr(0, file.lastIndexOf('.')); '' ``` This patch makes `ignore_file_extensions` less greedy. `create_key_name()` will only remove the extension when: 1. the extension matches `.json`, `.yaml`, `.yml`, or `.properties`, and 2. `expand_keys` is enabled. Closes #56.
- Loading branch information