Skip to content

Commit

Permalink
Merge pull request gongwalker#3 from leeka515/patch-1
Browse files Browse the repository at this point in the history
修正锚链接错误
  • Loading branch information
wen.gong committed Aug 15, 2015
2 parents 53c8c08 + 62e4b93 commit ded4a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MinPHP/run/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getJSFileContent($matches){
//=======页面锚点连接替换start=======================================
$pattern = '/(href=[\"\']).*tag=\d#(\w+)/is';
function changeLink($matches){
return "#{$matches[1]}{$matches[2]}'";
return "{$matches[1]}#{$matches[2]}'";
}
$content = preg_replace_callback($pattern,'changeLink',$content);
$tag = C('version->no');
Expand Down

0 comments on commit ded4a56

Please sign in to comment.