Skip to content

Commit

Permalink
Merge branch 'rm/323920' into 'master'
Browse files Browse the repository at this point in the history
Fix: Remove unwanted parameters from file extension coming from Giphy

See merge request kchat/webapp!714
  • Loading branch information
antonbuks committed Apr 12, 2024
2 parents fd5e9aa + 57c600a commit 7c4eae1
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 7c4eae1

Please sign in to comment.