Skip to content

Commit

Permalink
Add failing test for trailing dot
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Jul 22, 2024
1 parent 4601c8b commit 2a72add
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ test('supports `value` option as function', t => {
}), 'See <a href="https://github.com/sindresorhus.com/linkify-urls">github.com</a> for a solution');
});

test.failing('skips the trailing period', t => {
t.is(linkifyUrls('Visit https://fregante.com.'), 'Visit <a href="https://fregante.com">https://fregante.com</a>.');
});

test('skips URLs preceded by a `+` sign', t => {
const fixture = 'git+https://github.com/sindresorhus/ava';
t.is(linkifyUrls(fixture), fixture);
Expand Down

0 comments on commit 2a72add

Please sign in to comment.