mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
7c1849d7b0
Before, this regular expression was looking for incomplete wikitext like this: <ref>unclosed <ref>closed</ref> With this change, wikitext like this will trigger the same error: <ref>unclosed <references /> incomplete</ref> This should be much, much more rare. But I feel it's reasonable to mark this as an error, instead of just rendering the broken inner tag in plain text. This patch also replaces `.*?>` with `[^>]*+>`. Both do the exact same. Instead of doing an "ungreedy search for the first possible closing bracket", which might cause backtracking, the new syntax consumes all non-brackets before expecting one. This is guaranteed to never backtrack (guaranteed by the extra +), and potentially faster because of this. Change-Id: Ic76a52cd111b28e4522f095ce3984e3583f602c1 |
||
---|---|---|
.phan | ||
i18n | ||
modules | ||
src | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AUTHORS.txt | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING.txt | ||
extension.json | ||
Gruntfile.js | ||
MIT-LICENSE.txt | ||
package-lock.json | ||
package.json | ||
README.md |
Cite
The Cite extension provides a way for users to create references as footnotes to articles.
See https://www.mediawiki.org/wiki/Extension:Cite for detailed documentation.