Skip to content

Commit f20ad4b

Browse files
committed
[rich_editor] fix problem of <h> tag anchor string
1 parent 0a91255 commit f20ad4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xoops_trust_path/modules/xpwiki/ways/w2x_php5.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ function HeadingEx(& $root, $text)
828828
if (preg_match('/\s*\[#([_0-9a-zA-Z]+)\]/', $text, $matches)) {
829829
$this->id = $matches[1];
830830
}
831-
$text = preg_replace('/\s*\[#_0-9a-zA-Z+\]/', '', $text);
831+
$text = preg_replace('/\s*\[#[_0-9a-zA-Z]+\]/', '', $text);
832832

833833
$this->insert(Factory_InlineEx($text));
834834
$this->level++; // h2,h3,h4

0 commit comments

Comments
 (0)