Skip to content

Commit

Permalink
fix(list-themes): filepath str replace
Browse files Browse the repository at this point in the history
  • Loading branch information
drawnepicenter committed Jul 29, 2016
1 parent d9736d4 commit 5180a76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/themes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.getThemes = () => {
const list = []
const files = glob.sync('themes/*.noon')
_.each(files, (path) => {
const name = path.replace(/themes\/|\.noon/, '')
const name = path.replace(/themes\//, '').replace(/\.noon/, '')
list.push(name)
})
return list
Expand Down

0 comments on commit 5180a76

Please sign in to comment.