Skip to content

Commit

Permalink
Fix: Remove unwanted paramterers from file extension coming from giphy
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
kpkarle authored and antonbuks committed Apr 12, 2024
1 parent 809e817 commit 57c600a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/channels/src/utils/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export function isGIFImage(extin: string): boolean {
}

const removeQuerystringOrHash = (extin: string): string => {
return extin.split(/[?#]/)[0];
return extin.split(/[?#%]/)[0];
};

export const getFileType = (extin: string): typeof FileTypes[keyof typeof FileTypes] => {
Expand Down

0 comments on commit 57c600a

Please sign in to comment.