Skip to content

Commit 91bf1d4

Browse files
committed
Fixed an issue causing prefixes to not conver.
1 parent cf7d90f commit 91bf1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function markdownToBB(): self {
152152
}
153153
foreach ($prefixes as $md => $bb){
154154
$md = preg_quote($md);
155-
$this->text = preg_replace("/^{$md}(?:\s*)(.*?)$}/", "[{$bb}]$1[/{$bb}]", $this->text);
155+
$this->text = preg_replace("/^{$md}(?:\s*)(.*?)$/m", "[{$bb}]$1[/{$bb}]", $this->text);
156156
}
157157
//
158158
// foreach (static::$bbPrefixes as $bb => $md){

0 commit comments

Comments
 (0)