https://bugzilla.wikimedia.org/show_bug.cgi?id=28642

--- Comment #5 from Bergi <[email protected]> 2011-04-22 15:00:28 UTC ---
The regexp for a heading would be
=+.+?=+[ \t]*(<!--[\s\S]*?--> *)*[ \t]*
with (fake)linebreaks on both sides. So I can give only some code examples.
I'm going to write a preprocessor test (/phase3/tests/parser/preprocess/), you
may use its code for a unit test (or try
/phase3/tests/phpunit/includes/parser/PreprocessorTest.php). Unfortunately I
have no PHP running anywhere.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to