Fix wikitext conversion of pasted '<ref>'s

Regex error meant only ref tags with attributes were detected.

Bug: T128805
Change-Id: Ide1153f5f5cc3fe8b0a25309d5e2ddabd796cbe6
This commit is contained in:
Ed Sanders 2016-04-12 12:13:55 +01:00
parent 0dc157a6de
commit 14d8e12188

View file

@ -68,7 +68,7 @@ ve.ui.commandHelpRegistry.register( 'insert', 'ref', {
label: OO.ui.deferMsg( 'cite-ve-dialog-reference-title' )
} );
ve.ui.mwWikitextTransferRegistry.register( 'reference', /<ref[^>]+>/ );
ve.ui.mwWikitextTransferRegistry.register( 'reference', /<ref[^>]*>/ );
/**
* MediaWiki UserInterface references list tool.