Skip to content
Snippets Groups Projects
Commit 7180f375 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Fix tests: Older Firefox doesn't support the "s" flag for RegExp

parent cdb06ecc
No related branches found
No related tags found
No related merge requests found
Pipeline #16411 passed
......@@ -111,8 +111,8 @@ export const readBinaryFileContent = async (file) => {
*/
export const getPDFSignatureCount = async (file) => {
const sigRegex = new RegExp(
"/Type\\s*/Sig.*?/SubFilter\\s*(/ETSI\\.CAdES\\.detached|/adbe\\.pkcs7\\.detached)",
"gs");
"/Type\\s*/Sig(.|\\s)*?/SubFilter\\s*(/ETSI\\.CAdES\\.detached|/adbe\\.pkcs7\\.detached)",
"g");
const content = await readBinaryFileContent(file);
let matches = 0;
while (sigRegex.exec(content) !== null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment