git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue/feed: include reply count as thread metadata
[minimedit.git]
/
article.inc.php
diff --git
a/article.inc.php
b/article.inc.php
index dbc545f8df2fadf209f00f76d74190eeb288f505..98cd475b22194095fca6924c9ef4570b6eaed041 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-132,7
+132,7
@@
class ArchiveArticle
$offset = strpos($this->raw, '</h2>');
$offset = $offset ? $offset + 5 : 0;
if (preg_match('{
$offset = strpos($this->raw, '</h2>');
$offset = $offset ? $offset + 5 : 0;
if (preg_match('{
- \G (?
: \s+ | <p\sclass="nav\b.*?</p> | <div [^>]*>
)* <p> \s* (.*?) </p>
+ \G (?
> \s+ | <aside\b.*?</aside> | <div [^>]*> | \[\[[^]]*\]\]
)* <p> \s* (.*?) </p>
}sx', $this->raw, $bodyp, 0, $offset)) {
return $bodyp[1];
}
}sx', $this->raw, $bodyp, 0, $offset)) {
return $bodyp[1];
}