From 3189da9a589f472fccfdcf6f0ada3aeb960328eb Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Sat, 9 May 2020 12:17:03 +0200 Subject: [PATCH] Typo --- extended-toc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extended-toc.php b/extended-toc.php index 23b198d..49910f8 100644 --- a/extended-toc.php +++ b/extended-toc.php @@ -420,7 +420,7 @@ if (!class_exists('ExToC')) { /** Extract headings from every pages */ for ($pagenum = 1; $pagenum <= count($this->pages); $pagenum++) { - $headers .= $this->exctract_headings($pagenum); + $headers .= $this->extract_headings($pagenum); } return $headers; @@ -431,7 +431,7 @@ if (!class_exists('ExToC')) { $this->pages = preg_split("//msuU", $this->fullcontent); } - private function exctract_headings($pagenum) { + private function extract_headings($pagenum) { /** find all header tags within the page * */ preg_match_all('/(]*>).*<\/h\2>/msuU', $this->pages[$pagenum - 1], $matches, PREG_SET_ORDER);