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

Only link urls #3827

Closed
wants to merge 9 commits into from
Closed

Only link urls #3827

wants to merge 9 commits into from

Conversation

tronsmit
Copy link
Contributor

@tronsmit tronsmit commented Apr 4, 2021

Tries to address: #3814

Final commit is a one-line preg_replace implementation

@tronsmit tronsmit force-pushed the only-link-URLs branch 6 times, most recently from acb2c82 to 3935883 Compare April 6, 2021 11:13
tronsmit added 6 commits April 6, 2021 13:54
This has to be interim. Strategy should be to isolate all REGEX_URL 
matches, escape the rest and rebuild with matches now tagged as links
1. Find all urls in $canonical
2. Escape everything else
3. Combine in order with urls tagged, but not escaped
@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

Merging #3827 (c0ddd35) into main (19f6dbe) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #3827      +/-   ##
============================================
- Coverage     22.44%   22.43%   -0.01%     
  Complexity    11503    11503              
============================================
  Files          1533     1535       +2     
  Lines         47741    47750       +9     
============================================
  Hits          10715    10715              
- Misses        37026    37035       +9     
Impacted Files Coverage Δ Complexity Δ
app/Elements/AbstractElement.php 90.76% <100.00%> (+1.37%) 20.00 <0.00> (-1.00) ⬆️
resources/views/icons/sex.phtml 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
app/Factories/ElementFactory.php 0.00% <0.00%> (ø) 8.00% <0.00%> (ø%)
app/Elements/AncestralFileNumber.php 100.00% <0.00%> (ø) 1.00% <0.00%> (-1.00%)
app/Elements/FamilySearchFamilyTreeId.php 0.00% <0.00%> (ø) 1.00% <0.00%> (?%)
app/Elements/AbstractExternalLink.php 100.00% <0.00%> (ø) 1.00% <0.00%> (?%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19f6dbe...c0ddd35. Read the comment docs.

@coveralls
Copy link

coveralls commented Apr 8, 2021

Coverage Status

Coverage decreased (-0.004%) to 20.94% when pulling c0ddd35 on tronsmit:only-link-URLs into 19f6dbe on fisharebest:main.

@tronsmit tronsmit deleted the only-link-URLs branch October 7, 2021 10:07
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.

2 participants