mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Do not link inside <file>...</file> tags.
- IMPROVEMENT: Do not link inside <file>...</file> tags.
This commit is contained in:
@ -152,6 +152,7 @@
|
|||||||
'<script>.*?<\/script>|' . // script
|
'<script>.*?<\/script>|' . // script
|
||||||
'<div.+?>|<\/div>|' . // attributes of div elements
|
'<div.+?>|<\/div>|' . // attributes of div elements
|
||||||
'<span.+?>|<\/span>|' . // attributes of span elements
|
'<span.+?>|<\/span>|' . // attributes of span elements
|
||||||
|
'<file>[^<]*<\/file>|' . // attributes of span elements
|
||||||
'style=".+?"|class=".+?"|' . // styles and classes (e.g. of wikitables)
|
'style=".+?"|class=".+?"|' . // styles and classes (e.g. of wikitables)
|
||||||
'\[' . $urlPattern . '\s.+?\]|'. $urlPattern . '(?=\s|$)|' . // urls
|
'\[' . $urlPattern . '\s.+?\]|'. $urlPattern . '(?=\s|$)|' . // urls
|
||||||
'(?<=\b)\S+\@(?:\S+\.)+\S+(?=\b)' . // email addresses
|
'(?<=\b)\S+\@(?:\S+\.)+\S+(?=\b)' . // email addresses
|
||||||
|
Reference in New Issue
Block a user