Skip to content

Commit

Permalink
Fix page label recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Jun 10, 2024
1 parent f51dff3 commit 005bb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/module/page-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function arabicToRoman(num) {
export function predictPageLabels(extractedPageLabels, catalogPageLabels, pagesCount) {
let pageLabels = [];

if (!catalogPageLabels || !catalogPageLabels.length) {
if (!catalogPageLabels && Object.values(extractedPageLabels).length < 2) {
for (let i = 0; i < pagesCount; i++) {
pageLabels[i] = (i + 1).toString();
}
Expand Down

0 comments on commit 005bb48

Please sign in to comment.