Browse Source

fix lastattr

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@464 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent
commit
099c160cc7
  1. 2
      coverager/coverager.php

2
coverager/coverager.php

@ -313,7 +313,7 @@ function sprint_cov($cov, $lines, $encode = true)
$line = $lastattr . $line;
}
if (preg_match('!(<span[^>]+>|</span>).*$!', $line, $m)) {
if (preg_match('!(<span[^>]+>|</span>)[^<>]*$!', $line, $m)) {
if ($m[1] == '</span>') {
$lastattr = null;
}

Loading…
Cancel
Save