Parse found links as URIs

This commit is contained in:
2024-03-22 09:03:42 +11:00
parent f48e41728a
commit 13a8629de0
2 changed files with 2 additions and 2 deletions

View File

@@ -6,6 +6,6 @@ RSpec.describe Adamantium::LinkFinder do
it "finds allowed links in a string" do
text = "Check out some of these cool websites: https://google.com https://example.com or even http://twitter.com and https://bsky.app"
expect(subject.call(text)).to eq ["https://example.com"]
expect(subject.call(text)).to eq [URI("https://example.com")]
end
end