Skip to content

Commit

Permalink
Update packages/next/next-server/lib/post-process.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
Timer and sindresorhus committed Sep 2, 2020
1 parent 85b087e commit f8b4462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/next-server/lib/post-process.ts
Expand Up @@ -247,7 +247,7 @@ function imageIsNotHidden(imgElement: HTMLElement): boolean {

// Currently only filters out svg images--could be made more specific in the future.
function sourceIsSupportedType(imgSrc: string): boolean {
return !imgSrc.match(/\.svg/)
return !imgSrc.includes('.svg')
}

// Initialization
Expand Down

0 comments on commit f8b4462

Please sign in to comment.