}
@list ($this->preface, $this->title, $this->body) =
- preg_split('{<h2>(.*?)</h2>\s*}', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
+ preg_split('{<h2>(.*?)</h2>\s*}s', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
}
}
# starting paragraph for documents without title (assumed simple/partial)
if (strpos($this->raw, '<h2') === FALSE and preg_match('{
- \A <p> \s* (.*?) </p>
+ \A (?: <div [^>]*> \s* )* <p> \s* (.*?) </p>
}sx', $this->raw, $bodyp)) {
return $bodyp[1];
}
# ignore symlinks, original contents only
return FALSE;
}
+ if ($current->isDir()) {
+ # traverse subdirectories unless untracked in any amount
+ return !file_exists("$current/.gitignore");
+ }
# match **/*.html
- return $current->isDir()
- || preg_match('/\.html$/', $current->getFilename());
+ return preg_match('/(?<!\.inc)\.html$/', $current->getFilename());
}
);
}