We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad416fa commit e641fa2Copy full SHA for e641fa2
src/common/methods.ts
@@ -37,14 +37,15 @@ export const ordinalSuffixOf = (n: number) => {
37
}
38
export const getBikeTagHash = (val: string): string => md5(`${val}${process.env.HOST_KEY}`)
39
40
-export const getImgurImageSized = (imgurUrl = '', size = 'm') =>
41
- imgurUrl
42
- .replace('.jpeg', `${size}.jpg`)
+export const getImgurImageSized = (imgurUrl = '', size = 'm') => {
+ return imgurUrl
43
.replace('.jpg', `${size}.jpg`)
+ .replace('.jpeg', `${size}.jpg`)
44
.replace('.gif', `${size}.gif`)
45
.replace('.png', `${size}.png`)
46
.replace('.webp', `${size}.webp`)
47
.replace('.mp4', `${size}.mp4`)
48
+}
49
50
export const getDomainInfo = (req: any): DomainInfo => {
51
const nonSubdomainHosts = [
0 commit comments