diff --git a/README.md b/README.md
index 34418a8..15f9547 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,9 @@ $converter->getEnvironment()->addExtension(new RoutesExtension());
echo $converter->convert("[Home](route('home'))");
// Output:
Home
+echo $converter->convert("[Home]()");
+// Output: Home
+
echo $converter->convert("[Home](route('home', absolute: false))");
// Output: Home
diff --git a/src/RoutesExtension.php b/src/RoutesExtension.php
index 4126aaa..c960d60 100644
--- a/src/RoutesExtension.php
+++ b/src/RoutesExtension.php
@@ -11,7 +11,7 @@
class RoutesExtension implements ConfigurationAwareInterface, ExtensionInterface
{
- protected string $pattern = '/\[([^]]+)]\(route\((.*?)\)\)/s';
+ protected string $pattern = '/\[([^]]+)]\(?\)/s';
protected ConfigurationInterface $configuration;