From 989c6af9aba27750429c84270060b9e5e3fc327b Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Wed, 1 Jul 2020 16:19:52 +0100 Subject: [PATCH] Add name field --- Text/Wiki/Parse/Default/Separator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Text/Wiki/Parse/Default/Separator.php b/Text/Wiki/Parse/Default/Separator.php index b34b7d4..07eb200 100644 --- a/Text/Wiki/Parse/Default/Separator.php +++ b/Text/Wiki/Parse/Default/Separator.php @@ -48,7 +48,9 @@ class Text_Wiki_Parse_Separator extends Text_Wiki_Parse { public $regex = '/' . '^' . - '([=]{4,})' . # "====", four or more = + '([=]{4,})' . # "====", four or more = + '\s?' . + '([A-z0-9_\-]*)' . # Name, if named section '$' . '/m';