Skip to content

Commit

Permalink
Merge faa4b3c into a3d1f11
Browse files Browse the repository at this point in the history
  • Loading branch information
falsandtru authored May 5, 2020
2 parents a3d1f11 + faa4b3c commit a12d56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function createKarmaMiddleware (
const scriptTags = []
for (const file of files.included) {
let filePath = file.path
const fileType = file.type || path.extname(filePath).substring(1)
const fileType = file.type || path.extname(filePath).substring(1).split(/[?#]/, 1)[0] || ''

if (helper.isDefined(fileType) && !FILE_TYPES.includes(fileType)) {
log.warn(`Invalid file type (${fileType}), defaulting to js.`)
Expand Down

0 comments on commit a12d56d

Please sign in to comment.