Skip to content

bug: URI::Find schemeless URL regex fails to compile #1140

Description

@fglock

Failure

The CPAN compatibility run 20260826-133506-83222 regressed URI::Find 20160806. The t/Find.t schemeless-URL case fails while compiling URI::Find::URI_RE:

Quantifier follows nothing in regex

The diagnostic points to URI::Find.pm line 182, in the distribution's large URL regular expression.

Reproduction

From an unpacked URI::Find 20160806 distribution after building its blib directory:

jperl -Iblib/lib -It t/Find.t
jperl --interpreter -Iblib/lib -It t/Find.t

Both backends reproduce the regex compilation error. The same error prevents URI::Find from recognizing URLs, including the IPv4 URL expected by t/urifind/find.t.

Expected behavior

The regex compiles and the URI::Find suite passes. System Perl 5.42.2 passes the complete upstream URI::Find 20160806 suite: 8 files and 618 tests.

Scope

URI::Find is pure Perl (no XS/C source). This is a PerlOnJava regex-engine compatibility regression affecting the same input on the JVM and interpreter backends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions