Skip to content

[Bug]: Incorrectly recognize numbers as email address #20523

@upsuper

Description

@upsuper

Attach (recommended) or Link to PDF file

In trading statements, sometimes the amount can be marked as something like 262@0.302304 which means there are 262 shares each with an earning or cost of 0.302304. This, however, is recognized as an email address in PDF.js, making it hard to copy the numbers from the statement. This is not at all a valid email address. It should probably try to exclude such case in the autolinker.

Web browser and its version

Firefox 146.0.1

Operating system and its version

Ubuntu 25.10

PDF.js version

5.4.396 (builtin Firefox)

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. open a PDF file with numbers like 262@0.302304, for example: test.pdf
  2. hover the pointer over the numbers

What is the expected behavior?

The numbers should not be highlighted, and shouldn't be clickable.

What went wrong?

The numbers are highlighted and, when clicked, opened as a mailto link.

Link to a viewer

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions