Skip to content

Commit 97de8fb

Browse files
authored
Merge pull request #4 from kduma-OSS/feature/pss-randomness
Allow random data after @ symbol
2 parents a1ccb27 + fc3a1ef commit 97de8fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/Commands/ProcessPdfFilesCommand.php

+4
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ public function handle(
161161

162162
$output = $this->getOutputPath($temporaryOutputDirectory, 'TG_'.$bc);
163163

164+
if($bc == 'UNKNOWN' && preg_match('/^((T[0-9A-Za-z]{14}T)[0-9A-Za-z]*|([0-9A-Za-z]{14})[0-9A-Za-z]*|([0-9A-Za-z]*)@[0-9A-Za-z]*)$/usm', $id, $matches)) {
165+
$bc = $matches[4] ?? $matches[3] ?? $matches[2] ?? $matches[1];
166+
}
167+
164168
$tagged[$id][$page_no][] = [
165169
'file' => $output,
166170
'tag' => $t['tag'],

0 commit comments

Comments
 (0)