Skip to content

Commit d24a759

Browse files
authored
Merge branch '2.4' into fix/css-level-3-selectors
2 parents 3d76b7f + fd45b92 commit d24a759

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/2.4/extensions/embed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ We do provide an adapter for the popular [`embed/embed`](https://github.com/osca
107107
because it supports fetching multiple URLs in parallel, which is ideal for performance, and it supports a wide range
108108
of embeddable content.
109109

110-
To use that library, you'll need to `composer install embed/embed` and then pass `new OscaroteroEmbedAdapter()` as the `adapter`
110+
To use that library, you'll need to `composer require embed/embed` and then pass `new OscaroteroEmbedAdapter()` as the `adapter`
111111
configuration option, as shown in the [**Usage**](#usage) section above.
112112

113113
Need to customize the maximum width/height of the embedded content? You can do that by instantiating the service provided by

src/Extension/Autolink/UrlAutolinkParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final class UrlAutolinkParser implements InlineParserInterface
5656
*
5757
* @psalm-readonly
5858
*/
59-
private array $prefixes = ['www'];
59+
private array $prefixes = ['www.'];
6060

6161
/**
6262
* @psalm-var non-empty-string

tests/functional/Extension/Autolink/UrlAutolinkParserTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static function dataProviderForAutolinkTests(): iterable
7171
yield ['(www.google.com/search?q=Markup+(business)', '<p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p>'];
7272
yield ['www.google.com/search?q=(business))+ok', '<p><a href="http://www.google.com/search?q=(business))+ok">www.google.com/search?q=(business))+ok</a></p>'];
7373
yield ['(https://www.example.com/test).', '<p>(<a href="https://www.example.com/test">https://www.example.com/test</a>).</p>'];
74+
yield ['WWW text followed by a [link](https://example.com/foo-bar-test)', '<p>WWW text followed by a <a href="https://example.com/foo-bar-test">link</a></p>'];
7475

7576
// Tests involving semi-colon endings
7677
yield ['www.google.com/search?q=commonmark&hl=en', '<p><a href="http://www.google.com/search?q=commonmark&amp;hl=en">www.google.com/search?q=commonmark&amp;hl=en</a></p>'];

0 commit comments

Comments
 (0)