Skip to content

Commit ddd8b6c

Browse files
authored
use stricter regex
1 parent 5b4108b commit ddd8b6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ParseFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type FileSource =
4343
};
4444

4545
const base64Regex = new RegExp(
46-
'([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=)|([0-9a-zA-Z+/]{4}))',
46+
'([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/][AQgw]==)|([0-9a-zA-Z+/]{2}[AEIMQUYcgkosw048]=)|([0-9a-zA-Z+/]{4}))',
4747
'i'
4848
);
4949

0 commit comments

Comments
 (0)