myshenin / aws-lambda-multipart-parser

Parser of multipart/form-data requests for AWS Lambda
MIT License
74 stars 38 forks source link

convert regex match to ignore case for react-native #15

Closed reedyrm closed 6 years ago

reedyrm commented 6 years ago

I ran into an issue where I was uploading files via Postman (REST Client) that was working, but I couldn't upload the same file from my react-native iOS simulator. It took me a while, but I realized that Postman was sending proper-case properties and react-native was all lower case.

The library was outputting no errors, just a blank array since it none of the regex's were matching. This should solve that scenario and ignore case in a match.