Exclude stuff betweeen input and select tags.

Addresses #58 to prevent LinkTitles from interfering with the
PageForms extension. Needs testing.
This commit is contained in:
Daniel Kraus
2022-01-12 07:15:40 +01:00
parent d6dd9eb153
commit 4e868e3669
2 changed files with 9 additions and 1 deletions

View File

@ -138,6 +138,8 @@ class Splitter {
'<syntaxhighlight.*?>.*?<\/syntaxhighlight>|' . // syntaxhighlight
'<gallery>.*?<\/gallery>|' . // gallery
'<div.*?>|<\/div>|' . // attributes of div elements
'<input.+<\/input>|' . // input tags and anything between them
'<select.+<\/select>|' . // select tags and anything between them
'<span.*?>|<\/span>|' . // attributes of span elements
'<file>[^<]*<\/file>|' . // stuff inside file elements
'style=".+?"|class=".+?"|data-sort-value=".+?"|' . // styles and classes (e.g. of wikitables)