Skip to content
Snippets Groups Projects
Select Git revision
  • 5a9fa8dd454493648d41f000f67a6abda9c23a50
  • main default protected
  • demo protected
  • master
  • icon-set-mapping
  • production protected
  • revert-62666d1a
  • favorites-and-recent-files
  • lit2
  • wc-part
  • mark-downloaded-files
  • feature/annotpdf-test
  • fix-zip-upload
  • config-cleanup
  • wip
  • app-shell-update
16 results

karma.conf.js

Blame
    • Reiter, Christoph's avatar
      9b8b6ac6
      getPDFSignatureCount: fix "too much recursion" error with some PDFs · 9b8b6ac6
      Reiter, Christoph authored
      The regex used to detect signatures uses "(.|\\s)" to emulate dotall, since
      old browsers don't support it.
      
      For some reason that leads to internal errors in Firefox with larger files in some cases.
      
      Replacing it with a simpler "[\\s\\S]" class makes things work.
      
      Also adds some tests with real PDF files, "QPDF-367-0.pdf" was triggering this issue.
      
      Fixes #46
      9b8b6ac6
      History
      getPDFSignatureCount: fix "too much recursion" error with some PDFs
      Reiter, Christoph authored
      The regex used to detect signatures uses "(.|\\s)" to emulate dotall, since
      old browsers don't support it.
      
      For some reason that leads to internal errors in Firefox with larger files in some cases.
      
      Replacing it with a simpler "[\\s\\S]" class makes things work.
      
      Also adds some tests with real PDF files, "QPDF-367-0.pdf" was triggering this issue.
      
      Fixes #46
    i18next-scanner.config.js 390 B
    module.exports = {
        input: [
            'src/**/*.js',
        ],
        output: './',
        options: {
            debug: false,
            removeUnusedKeys: true,
            lngs: ['en','de'],
            func: {
                list: ['i18n.t', 'i18nKey']
            },
            resource: {
                loadPath: 'src/i18n/{{lng}}/{{ns}}.json',
                savePath: 'src/i18n/{{lng}}/{{ns}}.json'
            },
        },
    }