Skip to content

Commit

Permalink
Fix URL parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Jun 18, 2024
1 parent ba4e08e commit b4e8ed4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/module/link/parsed-overlays.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export function getParsedOverlays(chars) {
let text = '';
for (let j = sequence.from; j <= sequence.to; j++) {
let char = chars[j];
text += char.c;
// Use the original char to avoid decomposed ligatures increasing match length
text += char.u;
}
let match = text.match(urlRegExp);
if (match) {
Expand Down
3 changes: 3 additions & 0 deletions src/core/module/outline-reader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { getPositionFromDestination, getSortIndex } from './util.js';

// TODO:
// - If root node is single and is a document title, remove it and use its children as top level nodes

async function getSortIndexFromTitle(pdfDocument, structuredCharsProvider, title, dest){
let position = await getPositionFromDestination(pdfDocument, dest);
if (!position) {
Expand Down

0 comments on commit b4e8ed4

Please sign in to comment.