Skip to content

Commit

Permalink
Fix for latest report in #168
Browse files Browse the repository at this point in the history
  • Loading branch information
Netcarver committed Jul 28, 2016
1 parent 467658e commit ba39b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Netcarver/Textile/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3653,7 +3653,7 @@ protected function findLinkStartInSlice(&$slice, $slicenum)
$replaced = 0;
$slice = preg_replace('~ +" +~'.$mod, ' '.$this->uid.'linkStartMarker:"', $slice, 1, $replaced);
if ($replaced == 0) {
$slice = preg_replace('~^" +~'.$mod, $this->uid.'linkStartMarker:"', $slice, 1, $replaced);
$slice = preg_replace('~^" +~m'.$mod, $this->uid.'linkStartMarker:"', $slice, 1, $replaced);
}
} else {
// Rebuild the link's text by reversing the parts and sticking them back together with quotes.
Expand Down

0 comments on commit ba39b16

Please sign in to comment.