Skip to content

Commit

Permalink
Add a test for links that end in .php (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Nov 2, 2023
1 parent b90f2c4 commit bba9388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/api/tests/rich-text-detection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('detectFacets', () => {
'start.com/foo/bar?baz=bux#hash middle end',
'start middle end.com/foo/bar?baz=bux#hash',
'newline1.com\nnewline2.com',
'a example.com/index.php php link',

'not.. a..url ..here',
'e.g.',
Expand Down Expand Up @@ -156,6 +157,11 @@ describe('detectFacets', () => {
['\n'],
['newline2.com', 'https://newline2.com'],
],
[
['a '],
['example.com/index.php', 'https://example.com/index.php'],
[' php link'],
],

[['not.. a..url ..here']],
[['e.g.']],
Expand Down

0 comments on commit bba9388

Please sign in to comment.