23 / resumable.js

A JavaScript library for providing multiple simultaneous, stable, fault-tolerant and resumable/restartable uploads via the HTML5 File API.
MIT License
4.65k stars 611 forks source link

updating regex to handle chinese characters #610

Open manit815 opened 1 year ago

manit815 commented 1 year ago

At present, the current regex doesn't take care of when we are passing filenames having chinese characters.

The bug reproduction steps: Take three files with names as "平行级_高速轴_中间_001.xml", "平行级_高速轴_叶片侧_001.xml", "平行级_高速轴_电机侧_001.xml" and perform an upload. The uniqueIdentifier was not getting generated, like below:

image

As a fix for this, we have started respecting chinese characters(unicode) in the regex.