Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework autolinks #220

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Rework autolinks #220

merged 1 commit into from
Jan 17, 2024

Conversation

mity
Copy link
Owner

@mity mity commented Jan 17, 2024

  • We have now dedicated run over the inline marks for them.

  • We check more throughly whether it really looks as an URL or e-mail
    address. The old implementation recognized even heavily broken ones.

  • This allows us to be much more careful in order not to cross already
    resolved marks.

  • Share substantial parts of the code between all three types of the
    permissive autolinks (URL, WWW, e-mail).

  • Merge their tests into one file, spec-permissive-autolinks.txt.

  • Add one pathological case which triggered quadratic behavior in the
    old implementation.

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a715b88) 94.23% compared to head (071f71d) 94.50%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
+ Coverage   94.23%   94.50%   +0.26%     
==========================================
  Files           3        3              
  Lines        3123     3147      +24     
==========================================
+ Hits         2943     2974      +31     
+ Misses        180      173       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/md4c.c Fixed Show fixed Hide fixed
 * We have now dedicated run over the inline marks for them.

 * We check more throughly whether it really looks as an URL or e-mail
   address. The old implementation recognized even heavily broken ones.

 * This allows us to be much more careful in order not to cross already
   resolved marks.

 * Share substantial parts of the code between all three types of the
   permissive autolinks (URL, WWW, e-mail).

 * Merge their tests into one file, spec-permissive-autolinks.txt.

 * Add one pathological case which triggered quadratic behavior in the
   old implementation.
@mity mity merged commit d955c49 into master Jan 17, 2024
12 checks passed
@mity mity deleted the rework-autolinks branch January 18, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant