feat: openssl based hoppscotch-relay for request forwarding (#4442)
This commit is contained in:
@@ -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()}`)
|
||||
}
|
||||
Reference in New Issue
Block a user