Skip to content

Regex issue in TextureLoader #14675

@4zuko

Description

@4zuko

var isJPEG = url.search( /\.(jpg|jpeg)$/ ) > 0 || url.search( /^data\:image\/jpeg/ ) === 0;

Description:
It seems that i modifier is missing in regex /\.(jpg|jpeg)$/. Or we could be more specific using following regex: /\.(?:jpe?g|JPE?G)$/.

Three.js version

  • r95

Browser

  • All of them
  • Chrome
  • Firefox
  • Internet Explorer

OS

  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions