We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04d123 commit 83579eeCopy full SHA for 83579ee
README.md
@@ -75,7 +75,7 @@ Create with options.
75
```php
76
$options = [
77
'strip_scheme' => false,
78
- 'text_limit' => false,
+ 'text_limit' => null,
79
'auto_title' => false,
80
'escape' => true,
81
'link_no_scheme' => false
src/Autolink.php
@@ -263,7 +263,14 @@ public function textLimit(int|callable|null $value = null): static
263
264
public function getTextLimit(): int|callable|null
265
{
266
- return $this->getOption('text_limit');
+ $value = $this->getOption('text_limit');
267
+
268
+ // Fix for B/C
269
+ if ($value === false) {
270
+ $value = null;
271
+ }
272
273
+ return $value;
274
}
275
276
/**
0 commit comments