Skip to content

Commit

Permalink
fix issue #148
Browse files Browse the repository at this point in the history
  • Loading branch information
Ffloriel committed Apr 5, 2019
1 parent 9df1d5e commit e933159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ class Purgecss {
getFileExtractor(filename: string, extractors: Array<ExtractorsObj> = []) {
if (!extractors.length) return DefaultExtractor

const extractorObj: any = extractors.find(extractor =>
const extractorObj = extractors.find(extractor =>
extractor.extensions.find(ext => filename.endsWith(ext))
)
) || DefaultExtractor
return extractorObj.extractor
}

Expand Down

0 comments on commit e933159

Please sign in to comment.