mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-19 19:41:29 +02:00
Fix issue with multi-byte string compatibility
This commit is contained in:
parent
cd6912dfb3
commit
680287bb78
@ -553,7 +553,7 @@ class Parsedown
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text = trim($text, ' ');
|
$text = trim($text, ' ');
|
||||||
$link = strtolower(str_replace(' ','-',$text));
|
$link = preg_replace('/[^\p{L}\p{N}\p{M}-]+/u', '', mb_strtolower(mb_ereg_replace(' ','-',$text)));
|
||||||
$attr = array();
|
$attr = array();
|
||||||
if (!empty($link)) {
|
if (!empty($link)) {
|
||||||
$attr = array(
|
$attr = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user