Skip to content

Commit 7b34c50

Browse files
committed
wip
1 parent 2daae1d commit 7b34c50

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Concerns/HandlesRegularExpressions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ protected function getRegularExpression(): string
2424

2525
$regex = $route->compile()->getRegex();
2626

27-
$regex = preg_replace('/^{\^\/(.*)/', '{^$1', $regex);
27+
$regex = preg_replace('/^(#|{)\^\/(.*)/', '$1^$2', $regex);
2828

2929
$regex = str_replace('>[^/]+)', '>.+)', $regex);
3030

31+
$regex = str_replace('$#sD', '$#sDi', $regex);
3132
$regex = str_replace('$}sD', '$}sDi', $regex);
3233

3334
return $regex;

src/Drivers/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function register()
1515

1616
public function processLog(MessageSent $event)
1717
{
18-
if (config('mail.default') !== 'log') {
18+
if (config('mail.driver') !== 'log' && config('mail.default') !== 'log') {
1919
return;
2020
}
2121

0 commit comments

Comments
 (0)