Skip to content

Commit

Permalink
Refine pattern for filtering ambiguous extensions
Browse files Browse the repository at this point in the history
Fixes #541
  • Loading branch information
Alhadis committed Feb 7, 2017
1 parent 285f6a0 commit ae6eaaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Fixed
- [[`#537`][], [`#540`][]] Errors thrown for [`atom-svn`](https://atom.io/packages/svn) and [`atom-ng`](https://atom.io/packages/atom-hg) users
- [[`#541`][]] Certain filenames replacing `.tpl` icons
- `linguist-language` strategy not working on Windows
- Missing cache and repository icons on Windows. Seriously this time.
- Icons not cleared from memory when closing `find-and-replace`

[`#537`]: https://github.com/file-icons/atom/issues/537
[`#540`]: https://github.com/file-icons/atom/issues/540
[`#541`]: https://github.com/file-icons/atom/issues/541


[2.0.14] - 2017-02-03
Expand Down
2 changes: 1 addition & 1 deletion lib/service/strategies/path-strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class PathStrategy extends Strategy {
filter(path){
return path
.replace(/~(?:orig|previous)$/, "")
.replace(/\.(?:inc?|dist|tm?pl|te?mp)$/i, "");
.replace(/^([^.]*\.[^.]+)\.(?:inc?|dist|tm?pl|te?mp)$/i, "$1");
}
}

Expand Down

0 comments on commit ae6eaaf

Please sign in to comment.