Skip to content

bug(wasm-image-processor): loadImage function doesn't catch properly extension from url #213

@igorbrasileiro

Description

@igorbrasileiro

Issue

the getFileExtension regex isn't catching the file extension from url pathname (as I expect) or loadImage should pass url.pathname to getFileExtension function.

example:
getFileExtension("https://myfile.com/") // com/
getFileExtension("https://myfile.com/file") // 'com/file'
getFileExtension("https://myfile.com/file.png?something=") // png?something=
getFileExtension("https://myfile.com/file.png?something=.webp") // "webp"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions