Skip to content

regexps.contentDisposition support all utf-8 chars #70

@Nyx2022

Description

@Nyx2022

in index.js,the contentDisposition is new RegExp(^Content-Disposition: *(form-data|inline|attachment)${BASIC_LATIN}*${EOL}, 'i'),
and BASIC_LATIN is '[\u0009\u0020-\u007E]';
only match english chars,but in non-english countries,it will has some other chars besides in ths range,so can you change contentDisposition to ;

^Content-Disposition: (form-data|inline|attachment).${EOL}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions