feat: openssl based hoppscotch-relay for request forwarding (#4442)

This commit is contained in:
Shreyas
2024-10-24 14:20:51 +05:30
committed by GitHub
parent deedf35bf0
commit f52219bb95
28 changed files with 2284 additions and 859 deletions

View File

@@ -0,0 +1,7 @@
export function hasValidExtension(
filename: string,
allowedExtensions: string[]
): boolean {
const ext = filename.slice(((filename.lastIndexOf(".") - 1) >>> 0) + 2)
return allowedExtensions.includes(`.${ext.toLowerCase()}`)
}