fix: remove typescript annotations from .js file

This commit is contained in:
Paul Bienkowski 2021-11-26 13:37:40 +01:00
parent f183b9e33a
commit 5fcb959002

View file

@ -4,7 +4,7 @@ import {setLogin} from 'reducers/login'
import configPromise from 'config' import configPromise from 'config'
import download from 'downloadjs' import download from 'downloadjs'
function getFileNameFromContentDispostionHeader(contentDisposition: string): string | undefined { function getFileNameFromContentDispostionHeader(contentDisposition) {
const standardPattern = /filename=(["']?)(.+)\1/i const standardPattern = /filename=(["']?)(.+)\1/i
const wrongPattern = /filename=([^"'][^;"'\n]+)/i const wrongPattern = /filename=([^"'][^;"'\n]+)/i