mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
70fa9c8aeb
Annotation types with more than one slash such as 'link/ExtLink/URL' weren't being processed correctly because .split( '/', 2 ) throws away everything after the second slash. Instead, don't pass a limit to .split(); the code for reconstructing a slash-separated string from multiple components was already in place. Also add test cases for URL links and numbered links. (Do you like the lines-of-code to lines-of-test ratio in this commit, Trevor? ;) ) Change-Id: I7add87396447a01b1c23a4f9bfd63d2e8fd861ce |
||
---|---|---|
.. | ||
annotations | ||
nodes | ||
ve.dm.Annotation.js | ||
ve.dm.AnnotationFactory.js | ||
ve.dm.BranchNode.js | ||
ve.dm.Converter.js | ||
ve.dm.Document.js | ||
ve.dm.DocumentSynchronizer.js | ||
ve.dm.js | ||
ve.dm.LeafNode.js | ||
ve.dm.Node.js | ||
ve.dm.NodeFactory.js | ||
ve.dm.Surface.js | ||
ve.dm.SurfaceFragment.js | ||
ve.dm.Transaction.js | ||
ve.dm.TransactionProcessor.js |