Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[rich_editor] fix problem of <h> tag anchor string
  • Loading branch information
nao-pon committed Mar 3, 2014
1 parent 0a91255 commit f20ad4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoops_trust_path/modules/xpwiki/ways/w2x_php5.php
Expand Up @@ -828,7 +828,7 @@ function HeadingEx(& $root, $text)
if (preg_match('/\s*\[#([_0-9a-zA-Z]+)\]/', $text, $matches)) {
$this->id = $matches[1];
}
$text = preg_replace('/\s*\[#_0-9a-zA-Z+\]/', '', $text);
$text = preg_replace('/\s*\[#[_0-9a-zA-Z]+\]/', '', $text);

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

0 comments on commit f20ad4b

Please sign in to comment.